[Haskell-cafe] where to put general-purpose utility functions

Simon Hengel sol at typeful.net
Sat Jan 21 22:49:18 CET 2012


>   headMaybe :: [a] -> Maybe a

Is this the same as Data.Maybe.maybeToList?

>   readMaybe :: Read a => String -> Maybe a

This has been added to base recently [1].

Cheers,
Simon

[1] https://github.com/ghc/packages-base/commit/0e1a02b96cfd03b8488e3ff4ce232466d6d5ca77



More information about the Haskell-Cafe mailing list