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

Brian Victor gmane at brianhv.org
Tue Jan 21 03:44:16 UTC 2014

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>

My cabal file includes:

  build-depends:       base >=4.6 && <4.7, mtl >=2.1 && <2.2,
    containers >=0.4 && <0.5, cairo >= 0.12 && <= 0.13

I'm on OSX 10.9.1. I had to point cairo to gcc-4.9 instead of clang to
make it compile.

Where else can I look for the problem?


More information about the Haskell-Cafe mailing list