4 ms·
> I don't like the Prelude. It has a lot of cruft - partial functions, weird names for things. For the partial problem, you could rely on `safe` (https://hacka
by guiraldelli 11y ago
> I don't like the Prelude. It has a lot of cruft - partial functions, weird names for things.
For the partial problem, you could rely on `safe` (https://hackage.haskell.org/package/safe https://hackage.haskell.org/package/safe). But I am sure you could take any other function on `Prelude` that you don't like and do a Hayoo/Hoogle (e.g. http://hayoo.fh-wedel.de/?query=[a]+-%3E+Maybe+a http://hayoo.fh-wedel.de/?query=[a]+-%3E+Maybe+a )search and find the one more appropriate. :)
- dllthomas 11y agoAt this point, I'm mostly well aware of the alternatives. I just wish the right thing was also the easiest thing.