#2939: Example in library doco for Control.Exception.handle is no longer 
supported
in GHC 6.10
-----------------------------+----------------------------------------------
Reporter:  nr                |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Documentation   
 Version:  6.10.1            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 The library documentation for {{{Control.Exception}}} includes an example
 that does not compile in GHC 6.10:

 {{{
 Prelude Control.Exception System> do handle (\e -> exitWith (ExitFailure
 1)) $ undefined

 <interactive>:1:3:
     Ambiguous type variable `e' in the constraint:
       `Exception e'
         arising from a use of `handle' at <interactive>:1:3-41
     Probable fix: add a type signature that fixes these type variable(s)
 Prelude Control.Exception System>
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2939>
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

Reply via email to