News for hackers. Stuff that matters.
Re:Haskell: A Great Procedural Language by hiAndrewQuinn on Sunday January 19, 2025 @06:05AM (#42755989)
Everyone else is responding with FOSS, so I'll respond with some companies:

Co-Star, the astrology SaaS, is apparently written with a Haskell backend. I'd love to have seen the casting call for that.

I believe the Mercury bank also runs most of their backend stuff on Haskell. Functional languages in general are surprisingly common among financial investment firms.

Some of Target's stuff is written in Haskell. I think there was at least one big Facebook project that was written in Haskell, but they may have moved away from it by now. Awake Security does some Haskell stuff.

One thing which might be surprising is Haskell is apparently quite strong for general backend web dev.

Re:Haskell: A Great Procedural Language by _jackdk_ on Sunday January 19, 2025 @06:52AM (#42756260)
> Haskell is apparently quite strong for general backend web dev

Yep. Mostly because of the https://www.servant.dev/ framework (but see also IHP, Yesod, and other frameworks). Servant lets you declare your HTTP API at the type level, and then it will infer the correct types for your endpoint handlers. You can also extract OpenAPI specs from it, generate clients for Haskell or other languages, etc.

My current employer, Bellroy, uses Haskell for pretty much all new code and Servant for all new HTTP APIs. https://exploring-better-ways.bellroy.com/our-technology-sta... is an older post discussing the shift to Haskell. We've found Haskell code to be much more compact than the equivalent Ruby, and significantly more robust.

Re:Haskell: A Great Procedural Language by hiAndrewQuinn on Sunday January 19, 2025 @07:33AM (#42756462)
Going from Ruby to Haskell is, itself, quite a good signal of quality for me. Start strong and end stronger. Sounds like you've got a good thing going!
Re:Haskell: A Great Procedural Language by colonial on Sunday January 19, 2025 @12:17PM (#42759047)
Oh, hey, I purchased one of your leather phone cases recently. Big fan!
Re:Haskell: A Great Procedural Language by _jackdk_ on Sunday January 19, 2025 @06:03PM (#42763035)
I'm glad you like them!
Re:Haskell: A Great Procedural Language by internet_points on Sunday January 19, 2025 @06:28AM (#42756131)
I maintain Haskell code for five different customers, some large projects, some smaller, projects of varying ages up to over a decade. All the projects do "server backend" stuff, some web frontend too. I love how secure I feel making changes to things I haven't touched in a while.
Re:Haskell: A Great Procedural Language by MaxGabriel on Sunday January 19, 2025 @07:49AM (#42756536)
You’re correct that Mercury uses Haskell for its backend: https://serokell.io/blog/haskell-in-production-mercury
Re:Haskell: A Great Procedural Language by hiAndrewQuinn on Sunday January 19, 2025 @10:23AM (#42757760)
How could I forget Serokell, too! An Estonian software development firm that uses Haskell and Nix as basic building blocks.

I think they were using Agda or something too for a while, but it appears I can't find what I'm thinking of on their site anymore. Really interesting guys if you're located in the Baltic states.

Re:Haskell: A Great Procedural Language by astrange on Sunday January 19, 2025 @01:01PM (#42759558)
> Co-Star, the astrology SaaS, is apparently written with a Haskell backend. I'd love to have seen the casting call for that.

They have a page about it: https://www.costarastrology.com/why-haskell/

It does one of the things I find most annoying about Haskell programmers, which is that they think the language is magic just because it has ADTs.

> HASKELL MAKES ILLEGAL STATES UNREPRESENTABLE.

That's not true!

It's especially not true for numeric programming, Haskell really doesn't provide good support for that. Basically only Ada and dependent-type languages do.

Re:Haskell: A Great Procedural Language by tome on Sunday January 19, 2025 @03:23PM (#42761402)
It is most definitely true for numeric programming (and Haskell is _somewhat_ dependently typed). For example, look at this finite bit width concatenation operation:

https://hackage.haskell.org/package/clash-prelude-1.8.2/docs...

How it compares to Ada though, I could not say.

Re:Haskell: A Great Procedural Language by astrange on Sunday January 19, 2025 @04:08PM (#42761843)
By "support" I don't mean that you can do it. Rather I meant the opposite - it doesn't stop you from doing it incorrectly.
Re:Haskell: A Great Procedural Language by tome on Monday January 20, 2025 @03:05AM (#42766123)
I see. You're probably correct about that. I guess I got thrown off by your suggestion that dependently typed provide good support for numeric programming, because I doubt any dependently typed language that put a lot of thought into floating point modes (and I'm not aware any has particularly good suppose for ranged integer types either, but I could just be uneducated in that regard).