[Haskell-beginners] Question about List Type Constraint and Null
aditya siram
aditya.siram at gmail.com
Sat Jan 22 20:01:19 CET 2011
> Finally, are you sure that the given type signature is what you want?
> Don't you want
>
> test :: Read a => String -> Maybe a
Yes that was a mistake, but the weirder thing is that fixing the type
sig does nothing to change the behavior described before: it still
fails to compile with -XNoMonomorphismRestriction and compiles fine if
it's removed.
It's going to take me a while understand absorb your explanation.
Thanks!
-deech
>
>
> Jürgen
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
More information about the Beginners
mailing list