#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 simonmar):

 I think I would implement this as a flag, mainly because it's simpler: no
 changes to the GHC API, or the `InteractiveContext` type, just `DynFlags`
 and `TcRnDriver.mkPlan`.

 You could still have a `:pretty` command in GHCi, and also check for
 errors early by implementing that in the GHCi front end.

 Also, the function should be a replacement for `print`, i.e. it should
 have a type of the form `C a => a -> IO String`.  See `TcRnDriver.mkPlan`
 for details of how we typecheck interactive statements.

 I would probably call it `-interactive-print=<name>`.

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