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

Brian Victor gmane at brianhv.org
Tue Jan 21 12:50:52 UTC 2014


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



More information about the Haskell-Cafe mailing list