[Haskell-cafe] Control.Monad.Error with a custom error type

2004-08-14 Thread Brian Smith
I have: data Reference = Ref [String] String data ReferenceError = RefError { expectedType :: String -- type of element we were looking for (e.g. type,package) , pointOfError :: Reference-- path to deepest parent element not found in path } type

Re: [Haskell-cafe] Control.Monad.Error with a custom error type

2004-08-14 Thread Tom Pledger
Brian Smith wrote: [...] instance MonadError (Either ReferenceError) Kind error: `Either ReferenceError' is not applied to enough type arguments When checking kinds in `MonadError (Either ReferenceError)' In the instance declaration for `MonadError (Either ReferenceError)' MonadError takes