Discussion:
[hakyll] Nooby stack build failing
Simon Hampton
2017-10-21 15:13:59 UTC
Permalink
I had problems doing a standard install from stack (see earlier post) and
found a solution of using a 2016 build from this forum. However, while that
got me a step forward I am now getting the following error

stack build
hakyll-0.1.0.0: configure (exe)
Configuring hakyll-0.1.0.0...
Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2: Encountered missing dependencies:
hakyll ==4.9.*

-- While building package hakyll-0.1.0.0 using:
/home/simon/.stack/setup-exe-cache/x86_64-linux-nopie/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux-nopie/Cabal-1.24.2.0 configure --with-ghc=/home/simon/.stack/programs/x86_64-linux/ghc-nopie-8.0.2/bin/ghc --with-ghc-pkg=/home/simon/.stack/programs/x86_64-linux/ghc-nopie-8.0.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/simon/.stack/snapshots/x86_64-linux-nopie/lts-9.9/8.0.2/pkgdb --package-db=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/pkgdb --libdir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/lib --bindir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/bin --datadir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/share --libexecdir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/libexec --sysconfdir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/etc --docdir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/doc/hakyll-0.1.0.0 --htmldir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/doc/hakyll-0.1.0.0 --haddockdir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/doc/hakyll-0.1.0.0 --dependency=base=base-4.9.1.0 --enable-tests --enable-benchmarks
Process exited with code: ExitFailure 1

Somehow stack exec site watch works though and I can see the site on port
8000 and it was compiled once, but I cannot now get it to recompile the
site when I change anything, and nor can I get it to compile scss

match "scss/app.scss" $ do
route $ constRoute "app.css"
compile compressScssCompiler

where


compressScssCompiler :: Compiler (Item String)
compressScssCompiler = do
fmap (fmap compressCss) $
getResourceString
= withItemBody (unixFilter "sass" [ "-s"
, "--scss"
, "--compass"
, "--style", "compressed"
, "--load-path", "scss"
])

​
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
b***@gmail.com
2017-10-25 19:30:29 UTC
Permalink
Hi Simon,

It looks like you’re calling your project “hakyll”. (In other words, that’s
the “name” given in your .cabal file.) This is just a guess, but if you
rename your project to something else (I think “site” is a common choice)
will it work? It may be that Stack and/or Cabal is confused by the presence
of the “hakyll” library in a project that is itself named “hakyll.”

Benjamin
Post by Simon Hampton
I had problems doing a standard install from stack (see earlier post) and
found a solution of using a 2016 build from this forum. However, while that
got me a step forward I am now getting the following error
stack build
hakyll-0.1.0.0: configure (exe)
Configuring hakyll-0.1.0.0...
hakyll ==4.9.*
/home/simon/.stack/setup-exe-cache/x86_64-linux-nopie/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux-nopie/Cabal-1.24.2.0 configure --with-ghc=/home/simon/.stack/programs/x86_64-linux/ghc-nopie-8.0.2/bin/ghc --with-ghc-pkg=/home/simon/.stack/programs/x86_64-linux/ghc-nopie-8.0.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/simon/.stack/snapshots/x86_64-linux-nopie/lts-9.9/8.0.2/pkgdb --package-db=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/pkgdb --libdir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/lib --bindir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/bin --datadir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/share --libexecdir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/libexec --sysconfdir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/etc --docdir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/doc/hakyll-0.1.0.0 --htmldir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/doc/hakyll-0.1.0.0 --haddockdir=/home/simon/code/sync/HTML/losvast/hakyll/.stack-work/install/x86_64-linux-nopie/lts-9.9/8.0.2/doc/hakyll-0.1.0.0 --dependency=base=base-4.9.1.0 --enable-tests --enable-benchmarks
Process exited with code: ExitFailure 1
Somehow stack exec site watch works though and I can see the site on port
8000 and it was compiled once, but I cannot now get it to recompile the
site when I change anything, and nor can I get it to compile scss
match "scss/app.scss" $ do
route $ constRoute "app.css"
compile compressScssCompiler
where
compressScssCompiler :: Compiler (Item String)
compressScssCompiler = do
fmap (fmap compressCss) $
getResourceString
= withItemBody (unixFilter "sass" [ "-s"
, "--scss"
, "--compass"
, "--style", "compressed"
, "--load-path", "scss"
])
​
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...