David Carter wrote:
>>> Prelude> let sqlist = map sq
...
>>> Prelude> sqlist [2.5]
> >>
>>> <interactive>:1:8:
>>>    No instance for (Fractional Integer)
>>>    ... etc

Isaac Dupree wrote:
>> The dreaded Monomorphism Restriction...
>> You could... use `ghci -fno-monomorphism-restriction`.

> ...it's good to know the syndrome has a name and a prevention
> strategy, even if not a cure :-).

I put

:set -fno-monomorphism-restriction

in my .ghci file. That pretty much cures it for me.

-Yitz
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to