[Haskell-cafe] ghc-mod list: cannot satisfy -package cairo

Carlo Hamalainen carlo at carlo-hamalainen.net
Tue Jan 21 06:15:32 UTC 2014

On 21/01/14 04:44, Brian Victor wrote:
> I'm receiving an error from ghc-mod in my cabal sandbox:
> %./.cabal-sandbox/bin/ghc-mod list
> Dummy:0:0:Error:<command line>: cannot satisfy -package cairo
>     (use -v for more information)
> The obvious potential problem is that cairo isn't installed. However,
> %cabal repl
> Preprocessing executable 'Notation' for Notation-
> GHCi, version 7.6.3: http://www.haskell.org/ghc/  :? for help
> ...
> Prelude Main> import Graphics.Rendering.Cairo
> Prelude Graphics.Rendering.Cairo Main>

If you use ghci and point it to only the cabal sandbox, can you still
import Graphics.Rendering.Cairo? For example:

ghci -no-user-package-db  -package-db

but change "x86_64-linux-ghc-7.6.3" to your appropriate architecture and
ghc version.

Carlo Hamalainen

More information about the Haskell-Cafe mailing list