#5461: Reconfigurable pretty-printing in GHCi
---------------------------------+------------------------------------------
    Reporter:  simonpj           |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:              
   Component:  Compiler          |      Version:  7.2.1       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonpj):

 I argue for a command because it only makes sense in GHCi. What would it
 mean to have
 {{{
 {-# OPTIONS_GHC -interactive-print=foo #-}
 module M where ..

 {-# OPTIONS_GHC -interactive-print=bar#-}
 module N where ...
 }}}
 Now load M and N into GHCi.  What print to use?  GHC's flags almost all
 affect one particular module. This doesn't: it affects the REPL, so we
 should put it in the REPL.  Just like `:set prompt` or `:set editor`.
 (Ian's right; `:set prettyprint` would be the right thing.)

 Simon

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