fpco / yesod-fay

Utilities for using the Fay Haskell-to-JS compiler with Yesod.
MIT License
24 stars 9 forks source link

Error: "ghc-pkg: cannot find package fay-dom" #18

Open cies opened 9 years ago

cies commented 9 years ago

Today when using LTS Haskell and a completely fresh install of GHC-7.8.4 and cabal-1.20 (as by the install instructions for Ubuntu on haskell.org), I got:

ghc-pkg: cannot find package fay-dom

When running cabal install -j --enable-tests --max-backjumps=-1 --reorder-goals on a newly init'ed Yesod "Postgres+Fay" (pf) project.

The following commands fixed it for me:

export LANG=en_US.utf8
export HASKELL_PACKAGE_SANDBOX=`echo .cabal-sandbox/*-packages.conf.d/`

I run them from the root directory of the Yesod project. I post this here in case anyone searches for a way to deal with this error.

creichert commented 9 years ago

Did you try to explicitly run cabal install fay-dom? (Not sure if necessary)

One other thing is to check that your HASKELL_PACKAGE_SANDBOX is actually set to a real dir. ls $HASKELL_PACKAGE_SANDBOX.