[GHC] #15085: :type-at/:all-types and :r don't mix

GHC ghc-devs at haskell.org
Wed Aug 8 18:27:30 UTC 2018


#15085: :type-at/:all-types and :r don't mix
-------------------------------------+-------------------------------------
        Reporter:  dmwit             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.3
       Component:  Compiler          |              Version:  8.4.2
      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 dmwit):

 Sure, here's a copy-and-paste of a session with 8.4.2. (I don't have 8.4.3
 handy to test with.)


 {{{
 % ghci-8.4.2 -ignore-dot-ghci
 GHCi, version 8.4.2: http://www.haskell.org/ghc/  :? for help
 Prelude> :!cat test.hs
 x = ()
 Prelude> :set +c
 Prelude> :l test.hs
 [1 of 1] Compiling Main             ( test.hs, interpreted )
 Ok, one module loaded.
 Collecting type info for 1 module(s) ...
 *Main> :all-types
 test.hs:(1,1)-(1,2): ()
 test.hs:(1,5)-(1,7): ()
 *Main> :!cat test.hs
 x = True
 *Main> :r
 [1 of 1] Compiling Main             ( test.hs, interpreted )
 Ok, one module loaded.
 *Main> :all-types
 test.hs:(1,1)-(1,2): ()
 test.hs:(1,5)-(1,7): ()
 }}}

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


More information about the ghc-tickets mailing list