[Haskell-cafe] ErrorT and catchError question

Adam Smyczek adam.smyczek at gmail.com
Tue Jan 15 00:28:20 EST 2008


Hi,

I'm trying to use ErrorT transformer based
on Don Stewart's Shell example:
http://cgi.cse.unsw.edu.au/~dons/blog/2007/03/10#programmable-semicolons
It's probably a trivial question, but I cannot figure out
how to implement the catchError function in:

instance MonadError String Shell where
	throwError      = error . ("Shell failed: "++)
	catchError l h = ???

Thanks for help,
Adam




More information about the Haskell-Cafe mailing list