Skip to content

New GHCi command `:load!` doesn't defer typed holes

Test.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.
Trac metadata
Trac field Value
Version 7.10.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC triple
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information