[Haskell-cafe] NoMonomorphismRestriction forces odd situation when using contexts
Phil Ruffwind
rf at rufflewind.com
Wed Dec 23 01:11:56 UTC 2015
You can avoid this problem by using a case-expression, which remains
monomorphic:
myRec =
case defRec of
Rec x y ->
Rec x y
More information about the Haskell-Cafe
mailing list