Re: TH: calling fail in Q monad gives uninformative error message, and error causes panic

2004-06-29 Thread Duncan Coutts
On Wed, 2004-06-23 at 01:13, Duncan Coutts wrote: ghc makes it's own type checker monad TcM an instance of the Quasi class (which is rather cunning), however this means that if the user calls the Monad function 'fail' then the internal TcM fail method gets called. This monad (IOEnv) was never

TH: calling fail in Q monad gives uninformative error message, and error causes panic

2004-06-22 Thread Duncan Coutts
ghc makes it's own type checker monad TcM an instance of the Quasi class (which is rather cunning), however this means that if the user calls the Monad function 'fail' then the internal TcM fail method gets called. This monad (IOEnv) was never meant to fail (see ghc/compiler/utils/IOEnv.hs/) so