-XImplicitParams in ghci
I would have expected this to work (setting implicit parame
GHCi, version 8.10.2: https://www.haskell.org/ghc/ :? for help
Prelude> :set -XImplicitParams
Prelude> let f :: (?a :: Int) => Int; f = ?a
Prelude> let ?a = 5 in f
5
Prelude> let ?a = 5
Prelude> f
<interactive>:5:1: error:
• Unbound implicit parameter (?a::Int) arising from a use of ‘it’
• In the first argument of ‘print’, namely ‘it’
In a stmt of an interactive GHCi command: print it