[GHC] #11481: New GHCi command `:load!` doesn't defer typed holes

GHC ghc-devs at haskell.org
Sat Jan 23 13:32:12 UTC 2016


#11481: New GHCi command `:load!` doesn't defer typed holes
-------------------------------------+-------------------------------------
           Reporter:  thomie         |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  8.0.1
          Component:  GHCi           |           Version:  7.10.3
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Test.hs:
 {{{#!hs
 f :: Int
 f = _

 main = print f
 }}}

 {{{
 $ ghc-8.0.1 --interactive
 GHCi, version 8.0.0.20160111: http://www.haskell.org/ghc/  :? for help
 Prelude> :load! Test.hs
 [1 of 1] Compiling Main             ( Test.hs, interpreted )

 Test.hs:2:5: error:
     • Found hole: _ :: Int
     • In the expression: _
       In an equation for ‘f’: f = _
     • Relevant bindings include f :: Int (bound at Test.hs:2:1)
 Failed, modules loaded: none.
 }}}

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


More information about the ghc-tickets mailing list