I made a mistake in another question that could be solved by looking at
:t myfunctionofinterest
for the function that I used in the library.
However, when I am at the root of my project and run
$ stack ghci
And my Main.hs has:
import MyLib
And my module:
module MyLib { bunchOfFunctions -- but not myfunctionofinterest } where import SomeDB.ModuleThatExposes -- myfunctionofinterest myfunc :: IO () myfunc = do myfunctionofinterest abc -- place where I misuse myfunctionofinterest and could have used :t on it to see it had 3 args
I can鈥檛 :t myfunctioninterinterest basically, since it is not displayed, and Import MyLib.myfunctionofinterest clearly help, as it was defined in the import. While I know that I could expose it and then check it out :a to compile and then edit the lib to hide it again, is there something that allows it faster and faster?
It seems to be a common template. What do you do when you need to check the type of what is used in the library during development?
haskell development-environment
Mittenchops
source share