input2 =
    [ InputDecs [ inp "emaLength" TyNumber (20 + 40) ] ]


(untested). Imho the simple, dumb, best fix for this is to give a explicit type to those values.

> input2 = [ InputDecs [ inp "emaLength" TyNumber ((20::Integer) + (40::Integer)) ] ]


This is just one way to fix it. You could also try to improve your instances or enable -foverlapping-instances. But in my experience MPTC and overlapping instances, though powerful, can become very confusing, very quickly.

Cheers
pepe
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to