
27 May
2016
27 May
'16
6:38 p.m.
GHCi enables -XExtendedDefaultRules, which cause read "2" to default to (). On 5/27/2016 8:28 PM, Erik Rantapaa wrote:
Hi fellow Haskellers!
If I bring up ghci and evaluate `read 2` I get the error "Prelude.read: no parse"
GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help Prelude> read "2" *** Exception: Prelude.read: no parse
Exactly how is this message coming about? I understand that `read` needs a return type in order to determine which type class instance to run. So, in this case, which type is `read` being asked to return?
Thanks, Erik
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe