
20 Jan
2012
20 Jan
'12
2:26 p.m.
On Thu, Jan 19, 2012 at 11:10:09PM -0600, Antoine Latter wrote:
On Thu, Jan 19, 2012 at 10:55 PM, Kazu Yamamoto
wrote: Hello,
I met strange behavior of let in ghci 7.0.4. The following works well.
You're running into the monomorphism restriction: http://www.haskell.org/haskellwiki/Monomorphism_restriction
To be more precise, it's the monomorphism restriction combined with ghci's extended type-defaulting rules: http://www.haskell.org/ghc/docs/7.2.2/html/users_guide/interactive-evaluatio... -Brent