[GHC] #1704: Exception when using the :list command in the GHCI debugger

GHC trac at galois.com
Tue Sep 18 12:49:36 EDT 2007


#1704: Exception when using the :list command in the GHCI debugger
-------------------------------+--------------------------------------------
    Reporter:  Olivier Boudry  |        Owner:         
        Type:  bug             |       Status:  new    
    Priority:  high            |    Milestone:  6.8.1  
   Component:  GHCi            |      Version:  6.8    
    Severity:  normal          |   Resolution:         
    Keywords:                  |   Difficulty:  Unknown
          Os:  Windows         |     Testcase:         
Architecture:  x86             |  
-------------------------------+--------------------------------------------
Comment (by Olivier Boudry):

 Sorry I forgot a ")".

 This one below is a copy/paste of a working do_bold function.

 do_bold :: Bool
 do_bold = unsafePerformIO (Control.Exception.catch
 (System.Environment.getEnv "TERM") (\e -> return "other")) `elem`
           ["xterm", "linux"]

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1704>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list