[GHC] #13835: ghci with ":set +t" should print type before starting evaluation

GHC ghc-devs at haskell.org
Fri Jun 16 18:52:33 UTC 2017


#13835: ghci with ":set +t" should print type before starting evaluation
-------------------------------------+-------------------------------------
        Reporter:  j.waldmann        |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  GHCi              |              Version:
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by vanto):

 Hello,\\
 If you write this, you have\\

 {{{
 Prelude> :set + t
 Prelude> let y = reverse [True]
 y :: [Bool]
 Prelude> y
 [True]
 it :: [Bool]
 Prelude> let z = True && undefined
 z :: Bool
 Prelude> z
 *** Exception: Prelude.undefined
 CallStack (from HasCallStack):
   error, called at libraries\base\GHC\Err.hs:79:14 in base:GHC.Err
   undefined, called at <interactive>:8:17 in interactive:Ghci6
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13835#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list