[Haskell-cafe] Can't use libraries in haskell

Александр kommunist1917 at mail.ru
Sun Jun 26 09:17:28 CEST 2011


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.


More information about the Haskell-Cafe mailing list