It's not a bug, it's a feature! When you use a pattern binding
mul2 = map (2*)
you invoke the dreaded monomorphism restriction. If you add a type
signature to this everything will work. This is no different from
something like:
plus = (+)
which also fails without a type signature.
John
- Hugs Bug report nobody
- Re: Hugs Bug report Alastair Reid
- Hugs Bug report nobody
- Hugs Bug report nobody
- Re: Hugs Bug report Yoshihiko ICHIKAWA
- Re: Hugs Bug report Mark P Jones
- Re: Hugs Bug report Simon Marlow
- Hugs Bug report nobody
- Hugs Bug report nobody
- Hugs Bug report nobody
- Hugs Bug report John C. Peterson
- Hugs Bug report nobody
- Re: Hugs Bug report Alastair Reid
- Re: Hugs Bug report Hans Aberg
- Hugs Bug report nobody
- Hugs Bug report nobody
- Hugs Bug report nobody
- Re: Hugs Bug report Alastair Reid
- Hugs Bug report nobody
- Hugs Bug report nobody
- Re: Hugs Bug report Mark P Jones
