ghc-mod list: cannot satisfy -package cairo

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-0.1.0.0... 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? -- Brian

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-0.1.0.0... 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 .cabal-sandbox/x86_64-linux-ghc-7.6.3-packages.conf.d but change "x86_64-linux-ghc-7.6.3" to your appropriate architecture and ghc version. -- Carlo Hamalainen http://carlo-hamalainen.net

On 1/21/14, 1:15 AM, Carlo Hamalainen wrote:
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-0.1.0.0... 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 .cabal-sandbox/x86_64-linux-ghc-7.6.3-packages.conf.d
but change "x86_64-linux-ghc-7.6.3" to your appropriate architecture and ghc version.
Yes, I can. %ghci -no-user-package-db -package-db .cabal-sandbox/x86_64-osx-ghc-7.6.3-packages.conf.d GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> import Graphics.Rendering.Cairo Prelude Graphics.Rendering.Cairo> -- Brian
participants (2)
-
Brian Victor
-
Carlo Hamalainen