Discussion:
[hakyll] Tutorial build steps have compile failure
David Brown
2018-05-04 15:11:14 UTC
Permalink
I just tried following the Hakyll tutorial, and am getting a build failure
about dependencies:

% hakyll-init davidborg
% cd davidborg
% stack init
...
% stack build
...
-- While building custom Setup.hs for package wai-app-static-3.1.6.2 using:
/home/davidb/.stack/setup-exe-cache/x86_64-linux-ncurses6-nopie/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux-ncurses6-nopie/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Logs have been written to: /home/davidb/davidborg/davidborg/.stack-work/logs/wai-app-static-3.1.6.2.log

Configuring wai-app-static-3.1.6.2...
Preprocessing library for wai-app-static-3.1.6.2..
Building library for wai-app-static-3.1.6.2..
<command line>: cannot satisfy -package-id optparse-applicative-0.14.2.0-7h0T7ONTR6AFGPMJCLb5iD:
optparse-applicative-0.14.2.0-7h0T7ONTR6AFGPMJCLb5iD is unusable due to shadowed dependencies:
ansi-wl-pprint-0.6.8.2-AFBJQxTmzbt6P0JlYhXs8j
(use -v for more information)

I’m not quite sure where to start looking at this, and am even a little
surprised, since much of the point of stackage lts is that the dependencies
work with each other.

Any ideas?
​
--
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.
David Brown
2018-05-04 19:07:56 UTC
Permalink
I removed my ~/.stack, and rebuilt, and everything is fine. I don't know if
this would be considered a bug in stack, cabal, or elsewhere.

David
Post by David Brown
I just tried following the Hakyll tutorial, and am getting a build failure
% hakyll-init davidborg
% cd davidborg
% stack init
...
% stack build
...
/home/davidb/.stack/setup-exe-cache/x86_64-linux-ncurses6-nopie/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux-ncurses6-nopie/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Logs have been written to: /home/davidb/davidborg/davidborg/.stack-work/logs/wai-app-static-3.1.6.2.log
Configuring wai-app-static-3.1.6.2...
Preprocessing library for wai-app-static-3.1.6.2..
Building library for wai-app-static-3.1.6.2..
ansi-wl-pprint-0.6.8.2-AFBJQxTmzbt6P0JlYhXs8j
(use -v for more information)
I’m not quite sure where to start looking at this, and am even a little
surprised, since much of the point of stackage lts is that the dependencies
work with each other.
Any ideas?
​
--
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...