logoalt Hacker News

the-grumptoday at 7:04 AM6 repliesview on HN

As someone who loves Haskell more than any other language, some challenges are

- the tooling is decades behind, say, Rust or Go

- finding the right library in looks very different in Haskell--you frequently start with the signature on Hoogle. Agents can learn this but it's not the same as "web search"

- creating the right solution also looks different. It's usually borne out of thinking about the types and coming up with the correct algebra. Again models can probably learn to create the right types and orient the solution around that, but it's not automatic

- same today as yesterday, laziness is a blessing and a curse. The runtime can do unpredictable things when you suddenly evaluate a deep thunk

- GHC directives effectively mean there are multiple "Haskells"

Some of those are a result of the "avoid success at all costs" mantra. You can't shake that off in a day. It will take a concerted effort to make it more amenable for seamless adoption.

Haskell continues to be my favorite language to write and read, but Rust is the more practical language with a rich type system. If you're looking for something approaching Haskell's expressiveness but with fewer of these issues, check out PureScript.


Replies

mhitzatoday at 7:32 AM

No way tooling is decades behind. You have a decent LSP, debugger, package manager and REPL.

Laziness is hard to observe, maybe Strict and StrictData would become more popular in use within this context.

I haven't checked in a while now if effects have become the norm in the ecosystem, or if some solution exists for "string" types, but for me all of Haskell's expressivity is lost in the noise of endless conversion function, wrapper types when stacking monads, and import fiddling.

show 1 reply
pjmlptoday at 7:52 AM

> - the tooling is decades behind, say, Rust or Go

If only Rust had something like GHCi.

Stack and Cabal have longer history than cargo, and Stackage for puzzle dependencies.

> - GHC directives effectively mean there are multiple "Haskells"

A bit like macro libraries and what features are enabled where in Rust

jose_zaptoday at 10:40 AM

> the tooling is decades behind, say, Rust or Go

That's definitely not true, even if that was true maybe 6 years ago. As someone who's uses Haskell daily and also many other languages, I can see Haskell's tooling as more advanced than many others.

show 2 replies
rootnod3today at 1:18 PM

I think the GHC directives are what hurts Haskell the most. At this point they should just embrace the GHC extensions and make it the "official" Haskell.

Having to enable them in the code is just a hassle. Just make it official and be done with it, just roll it into the language.

show 1 reply
holowoodmantoday at 7:58 AM

> - the tooling is decades behind, say, Rust or Go

No way. Where vibe-coded Rust contains tons of "unsafe", you can have your vibe-coded Haskell sprinkled with "unsafePerformIO" and "unsafeCoerce" ;)

show 1 reply
onlyrealcuzzotoday at 11:04 AM

> the tooling is decades behind, say, Rust or Go

Can AI not help speed this up?

As someone who DOESN'T use Haskell... What specifically is it missing?

Are you conflating ecosystem with tooling?

> If you're looking for something approaching Haskell's expressiveness but with fewer of these issues, check out PureScript

Rust is quite expressive. Is Haskell really substantially much more?

I do think Rust is a great language for LLMs because I think expressiveness is key.

show 2 replies