Re: monad type errors in class definition?

1998-10-26 Thread Pablo E. Martinez Lopez
class MetaData a where constructorName::a-String mapArgs::(MetaData b,MonadPlus c) = (b-c)-a-[c] results in the error Illegal type "[c]" in constructor application If I replace MonadPlus with Show or Num there is no error. (Replacing MonadPlus with Monad also result in an error)

Re: monad type errors in class definition?

1998-10-25 Thread Arthur Gold
I am trying to write some primitives to make it easy to manipulate haskell datatypes without knowing what they are. However the following class: class MetaData a where constructorName::a-String mapArgs::(MetaData b,MonadPlus c) = (b-c)-a-[c] results in the error Illegal type