#3959: indenting change causes internal error
-------------------------+--------------------------------------------------
Reporter: RichardG | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.12.1 | Keywords:
Os: MacOS X | Testcase:
Architecture: x86 | Failure: None/Unknown
-------------------------+--------------------------------------------------
Comment(by RichardG):
I forgot to mention that the following will compile without warning:
{{{
test = do
E.throw Failure
return "No exception"
`E.catches`
[E.Handler (\Failure -> return "Exception")]
}}}
whereas
{{{
test = do
E.throw Failure
return "No exception"
`E.catches`
[E.Handler (\Failure -> return "Exception")]
}}}
generates the following error:
{{{
Test2.hs:19:7:
Ambiguous type variable `m' in the constraint:
`Monad m' arising from a use of `return' at Test2.hs:19:7-12
Probable fix: add a type signature that fixes these type variable(s)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3959#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs