Proposal: Add readMaybe (and possibly readEither) to Prelude, make Haddocks for read more cautionary
Henning Thielemann
lemming at henning-thielemann.de
Tue Jan 3 21:51:30 UTC 2017
On Wed, 4 Jan 2017, Artyom wrote:
> However, not everyone is an experienced programmer and not everyone is
> solving Real-World Problems with Haskell. Some people just want to have
> fun when they are programming, and maybe get something useful as a
> result. In my experience, nothing kills fun better than having to unwrap
> and chain Maybes, add dozens of imports, insert `error`s and so on
> whenever you don't care about failure, etc etc etc.
You could just ignore the deprecation warnings like you ignore type
defaulting warnings for numbers in GHCi.
> I'm glad that qualified imports exist, and I also think it would be good
> if there was a GHC flag banning unqualified imports.
There is -fwarn-missing-import-lists.
https://downloads.haskell.org/~ghc/8.0.1/docs/html/users_guide/using-warnings.html#ghc-flag--Wmissing-import-lists
More information about the Libraries
mailing list