News for hackers. Stuff that matters.
Re:Haskell: A Great Procedural Language by RobotToaster on Sunday January 19, 2025 @03:21AM (#42755042)
Somewhat tangential, but the only software I know of that's written in Haskell is ImplicitCAD https://implicitcad.org/
Re:Haskell: A Great Procedural Language by AlgebraFox on Sunday January 19, 2025 @04:07AM (#42755323)
https://simplex.chat/

Private messenger for desktop and mobile platforms. It's mostly written in Haskell except for UI.

Re:Haskell: A Great Procedural Language by exe34 on Sunday January 19, 2025 @05:11AM (#42755705)
Having a quick look through their repos, it looks like they don't use Haskell for the mobile platforms?

> cpp-for-mobile > Template for cross-platform mobile app with native UIs and C++ core

Re:Haskell: A Great Procedural Language by AlgebraFox on Sunday January 19, 2025 @05:23AM (#42755759)
https://github.com/simplex-chat/simplex-chat/blob/stable/fla...

Their flake.nix indicates they use Haskell to generate cross compiled shared library for Android, iOS, Mac, Linux and Windows.

I am not expert in Nix but at high level I can see they are indeed using Haskell.

Re:Haskell: A Great Procedural Language by exe34 on Sunday January 19, 2025 @08:30AM (#42756774)
ah that makes sense thanks!
Re:Haskell: A Great Procedural Language by internet_points on Sunday January 19, 2025 @06:02AM (#42755968)
Also the server backend for the Wire messenger https://github.com/wireapp/wire-server
Re:Haskell: A Great Procedural Language by FabHK on Sunday January 19, 2025 @10:26AM (#42757792)
Pity that Wire never took off. It combined all the advantages of messaging apps for a while (available on many platforms, e2ee, etc.).

Goes to show that success is not determined by technology.

Re:Haskell: A Great Procedural Language by MaxRegret on Sunday January 19, 2025 @03:56AM (#42755257)
Don't forget Pandoc!
Re:Haskell: A Great Procedural Language by f1shy on Sunday January 19, 2025 @05:04AM (#42755658)
I had no idea it was Haskell. So much for what I heard “no practical use”. Pandoc seems like very real life practical Application for me.
Re:Haskell: A Great Procedural Language by sudahtigabulan on Sunday January 19, 2025 @05:24AM (#42755762)
And Pandoc's author is not even a software professional. He's a philosophy professor. :^)
Re:Haskell: A Great Procedural Language by tombert on Sunday January 19, 2025 @01:40PM (#42760072)
I've said for awhile that Pandoc is one of the very few Haskell programs that isn't exclusively used by Haskell programmers.

There are plenty of interesting Haskell programs (e.g. Xmonad, Darcs), but a lot of people explicitly use them because they're Haskell.

Pandoc, on the other hand, is useful to pretty much anyone who has ever needed to convert documents. It's one of the first things I install on most computers.

Re:Haskell: A Great Procedural Language by weikju on Sunday January 19, 2025 @03:24AM (#42755059)
Shellcheck is another useful one (linter for shell scripts)

https://www.shellcheck.net/

Re:Haskell: A Great Procedural Language by tmountain on Sunday January 19, 2025 @03:35AM (#42755125)
Haskell is an amazing type checker that’s occasionally used for writing software. ;-)
Re:Haskell: A Great Procedural Language by thesz on Sunday January 19, 2025 @05:12AM (#42755710)
This thing is awesome!

I tried it on couple of one liners and it found a couple of potential problematic points, one for each one liner.

Re:Haskell: A Great Procedural Language by Vosporos on Sunday January 19, 2025 @05:38AM (#42755835)
ShellCheck is an essential part of my projects' CI, couldn't do without it!
Re:Haskell: A Great Procedural Language by ryandv on Sunday January 19, 2025 @04:27AM (#42755441)
The aura package manager for AUR, as well as the xmonad tiling WM.
Re:Haskell: A Great Procedural Language by yehoshuapw on Sunday January 19, 2025 @04:40AM (#42755513)
https://hledger.org/

hledger - a plain text accounting tool

Re:Haskell: A Great Procedural Language by colordrops on Sunday January 19, 2025 @04:45AM (#42755553)
Xmonad, though most people have moved on to other window managers at this point.
Re:Haskell: A Great Procedural Language by ulrikrasmussen on Sunday January 19, 2025 @05:07AM (#42755676)
I still use it, it's the main reason I don't want to switch to Wayland. Everything looks and feels like it did 15 years ago, it's great!
Re:Haskell: A Great Procedural Language by internet_points on Sunday January 19, 2025 @06:04AM (#42755979)
https://github.com/waymonad/waymonad (no idea if it's usable)
Re:Haskell: A Great Procedural Language by cap11235 on Sunday January 19, 2025 @11:02AM (#42758173)
There are stronger reasons to avoid wayland. It's a protocol that manages to have all implementations slightly different, and creating an EGL context per the glxgears results in a hard crash, both with AMD and NVIDIA cards. I assume I messed up the EGL context, but why does my entire desktop need to crash? Xkill is a much better UX, and that's kinda sad. An Xorg app failing dramatically doesn't murder my desktop session
Re:Haskell: A Great Procedural Language by ulrikrasmussen on Monday January 20, 2025 @05:43AM (#42767267)
As a user I also just don't care because X11 satisfies all my needs, and I have never really understood why we needed to change the stack.
Re:Haskell: A Great Procedural Language by mbwgh on Sunday January 19, 2025 @04:57AM (#42755619)
Not me, because I hate change!
Re:Haskell: A Great Procedural Language by bekantan on Sunday January 19, 2025 @05:10AM (#42755689)
Still on XMonad, what are some good alternatives?
Re:Haskell: A Great Procedural Language by internet_points on Sunday January 19, 2025 @06:17AM (#42756066)
If you want to stay in the land of monads there is https://github.com/SimulaVR/Simula?tab=readme-ov-file "a VR window manager for Linux". Should've been called MetaMonad ;) but I guess that was already taken by the phylum metamonada, don't want to get on their bad side.
Re:Haskell: A Great Procedural Language by TypingOutBugs on Sunday January 19, 2025 @05:10AM (#42755696)
I worked on Cardano which is probably one of the larger Haskell projects (and Agda, which lets you write proofs and compile into Haskell!)
Re:Haskell: A Great Procedural Language by cropcirclbureau on Sunday January 19, 2025 @05:50AM (#42755891)
PostgREST and Hasura (before rewrite) are written in Haskell.
Re:Haskell: A Great Procedural Language by henrebotha on Sunday January 19, 2025 @05:51AM (#42755897)
Man I really want to learn a good code-driven CAD app sometime. Last time I tried to look at ImplicitCAD the website was down so I just gave up lol

CADQuery/build123d is the other big one I'm interested in.

Re:Haskell: A Great Procedural Language by simonmic on Monday January 20, 2025 @06:38PM (#42774502)
That got fixed the other day.

https://implicitcad.org

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).
Re:Haskell: A Great Procedural Language by epolanski on Sunday January 19, 2025 @06:12AM (#42756035)
I like Haskell, but I think it suffers from the same issues preventing most lisps to gain any traction: every codebase is different and reinvents its own DSL or uses different extensions.

Lispers hailing macros and metaprogramming cannot understand that power is also the very thing that makes jumping from project to project difficult, I have no intention of relearning your cleverly designed DSL or new extensions.

There's a reason why Java or PHP have plenty of widely used killer software, while monocle-wielding lispers and haskellers have very little to show after many decades.

It's not FP being the issue, it's just that their power attracts crowds interested in code more than the features/business/product.

I don't blame them, I love Haskell and Racket but I think very few teams can scale and make the compromise worth it.

Re:Haskell: A Great Procedural Language by kreetx on Sunday January 19, 2025 @06:28AM (#42756132)
The upside for haskell is that whenever you come to some new code, or return to your own old DSL-y code, the types are there as spikes in a cliff to help you move onward. With, e.g elisp, I always get a mild headache when I need to add some new feature to a codebase I myself wrote.
Re:Haskell: A Great Procedural Language by colordrops on Sunday January 19, 2025 @12:50PM (#42759419)
Perl was like this, though it did have wide adoption at one point. But people got sick of having 20 ways to do the same thing so Python was born. Is there an equivalent in the FP world?
Re:Haskell: A Great Procedural Language by internet_points on Sunday January 19, 2025 @06:21AM (#42756086)
https://tidalcycles.org/ – think ImplicitCAD but for live music performances?

also http://detexify.kirelabs.org/classify.html was surprisingly useful in university

Re:Haskell: A Great Procedural Language by endgame on Sunday January 19, 2025 @06:43AM (#42756208)
The other ones most people point to are https://pandoc.org and https://shellcheck.net
Re:Haskell: A Great Procedural Language by Locutus_ on Sunday January 19, 2025 @07:46AM (#42756521)
I've used Haskell several times for implementing isolated 'maths business logic units in commercial backend applications.

In one such system I built had the main (REST API exposing) backend implemented in Kotlin with a separate application in Haskell doing a complex set of maths driven business rules against GIS data to calculate area specific prices.

The amount of IO on the Haskell side was fairly minimum and abstracted away quite nicely.

Haskell allowed expressing all complexity in a way that was easy to audit and translate from business/data analyst requirements.

Would do again :-) But only with the correct amount isolation so you can lean into Haskell's strong sides.

Re:Haskell: A Great Procedural Language by IshKebab on Sunday January 19, 2025 @09:50AM (#42757478)
I think Pandoc too, but yeah it's a fairly accurate meme that Haskell isn't really used to make anything except Haskell compilers and tutorials. Last time I checked there was actually an exhaustive list of software written in Haskell somewhere, which they meant as a "look how successful it is - all these projects!" but is really "it's so unsuccessful we can actually write down every project using it".
Re:Haskell: A Great Procedural Language by simonmic on Sunday January 19, 2025 @12:22PM (#42759086)
Re:Haskell: A Great Procedural Language by IshKebab on Sunday January 19, 2025 @01:30PM (#42759950)
Oh yeah I was thinking of this list:

https://wiki.haskell.org/Haskell_in_industry

Imagine a "Go in industry" page. Even a "Rust in industry" would be laughable at this point.

Ok I'm maybe being a little unfair, but you get the point.

Re:Haskell: A Great Procedural Language by simonmic on Monday January 20, 2025 @06:41PM (#42774529)
That wiki page is very old. But yes, some such list is still needed for now, because people keep wondering about it.
Re:Haskell: A Great Procedural Language by cryptonector on Sunday January 19, 2025 @04:10PM (#42761865)
You're missing out if you don't know about PostgREST.