Hi All,

Any one of your have the experience of defining a state of a state monad
as a polymorphic type?
I want to have:

> type State = Term a => [a]
> data M a = M (State -> IO(State,a))

GHC yields a error message "Illegal polymorphic type".
How to resolve this?

Thank you very much.
  
 -W-M-
  @ @  
   |
  \_/   



_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to