GHC messages are complete and precise, usually telling you everything you need to know to understand, find, and fix the error, that may not even be on the place it’s actually detected.
It’s also in an alien language. That’s correct.
Comment on Writing C++ is easy.
CanadaPlus@lemmy.sdf.org 1 year ago
Haskell errors:
Iä! Iä! Cthulhu fhtagn! (b -> (a -> c)) -> (b -> (c -> c)) -> a
Ph’nglui mglw’nfah [[a]]
Cthulhu R’lyeh wgah’nagl fhtagn!
[45 lines of scopes]
Once you understand the type system really well and know which 90% of the information to discard it’s not so bad, I guess.
GHC messages are complete and precise, usually telling you everything you need to know to understand, find, and fix the error, that may not even be on the place it’s actually detected.
It’s also in an alien language. That’s correct.
complete and precise
Exactly. It’s a perfectly condensed yet totally complete readout of all the data you might need for debugging. It makes mathematicians everywhere proud.
If you don’t actually need a complete set of information about possible exotic type choices just to see you put an infix in the wrong place that’s basically not the compiler’s problem.
(TBF, I wouldn’t want to try and mindread the programmer in my compiler either, but then I am a maths person)
jibz@burggit.moe 1 year ago
Why is it written in Vietnamese though?
CanadaPlus@lemmy.sdf.org 1 year ago
American soldiers, when the trees have no side effects: