
26 Jun
2011
26 Jun
'11
7:17 a.m.
Thank you, for reply. Yes i use ghc.
First thing is to do 'ghc-pkg list'. If your package doesn't show up then it's not installed, according to the package registry. 'cabal install' should have registered it. If it is in the list, then it depends how you're building. If you use ghc manually, then you have to give '-package xyz'. If you use 'ghc --make', ghc will automatically add the -package for you. If you use cabal, you put the package in the dependencies, and 'cabal build' will add -package for you.
If i want to use ghci to test any function from my project. How can i import lib then? Thank you.