Re:Haskell: The Bad Parts, part 2 (2020)
by mhotchen on Tuesday February 09, 2021 @12:56PM
(#26080523)
Few interesting things in this comment, thanks! What you say makes sense; it sounds like Haskell can't literally hold my hand for me which is fair enough.
I've just started my Haskell journey and the undefined paths through partial function implementation caught me by surprise.
Just skimming Wikipedia it looks like I would want to use "total/strong functional programming" but apparently "total functional programming is not Turing-complete"
https://en.wikipedia.org/wiki/Total_functional_programming
Also found this on the Haskell site after some more googling:
> Just skimming Wikipedia it looks like I would want to use "total/strong functional programming" but apparently "total functional programming is not Turing-complete"
It isn't, but usually Turing completeness isn't what you want. Take a look at Idris, where functions may explicitly be total or not-necessarily-total.
The type system isn't helping you at all there.
The feeling I had was that much of the prelude stuff was there to provide for beautiful, terse examples of functional programming and less to protect a software engineer.