With the following module example:
module Exp ( initial, myval ) where
data State = State { i :: Int }
initial = State { i = 123 }
myval st = i st
After loading the module in GHCI, I see that the names Stateand iwere also exported. I can get their types and use them. How to limit export to export only initial(black box) and myval?
source
share