I think the issue here is that:

* Your hangman package does not define a library stanza
* But your test-suite depends on the hangman library

Try removing hangman from build-depends.

The weird string at the end is (I believe) a package key. Every package
gets such an arbitrary string (based on its dependencies). The reasons for
its existence, and exactly how it's different from package IDs and package
identifiers, is a long topic you're probably not interested in :). If you
are, I believe the GHC user manual covers these topics.

On Wed, Feb 15, 2017 at 6:54 PM, Galder ZamarreƱo <gal...@zamarreno.com>
wrote:

> Earlier today I was trying to run `stack test` in one of my projects and I
> kept getting this error:
>
> hangman-0.1.0.0: build (exe + test)
> Preprocessing executable 'hangman' for hangman-0.1.0.0...
> Preprocessing test suite 'tests' for hangman-0.1.0.0...
> <command line>: cannot satisfy -package-id hangman-0.1.0.0-
> 3msiFXAP8SrGLvb69w1t6p
>     (use -v for more information)
> Progress: 11/12
> --  While building package hangman-0.1.0.0 using:
>       
> /Users/g/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2
> --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 build exe:hangman
> test:tests --ghc-options " -ddump-hi -ddump-to-file"
>     Process exited with code: ExitFailure 1
>
> `stack build` was working fine:
>
> hangman-0.1.0.0: configure (exe)
> Configuring hangman-0.1.0.0...
> hangman-0.1.0.0: build (exe)
> Preprocessing executable 'hangman' for hangman-0.1.0.0...
> [1 of 1] Compiling Main             ( src/Main.hs,
> .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/hangman/hangman-tmp/Main.o
> )
> Linking .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/hangman/hangman
> ...
> hangman-0.1.0.0: copy/register
> Installing executable(s) in
> /Users/g/0/haskell/haskell-sandbox/haskellbook/hangman-
> ch13.hb/.stack-work/install/x86_64-osx/lts-8.0/8.0.2/bin
>
> What does that `3msiFXAP8SrGLvb69w1t6p` mean at the end of the package?
>
> Cheers,
> Galder
>
> --
> You received this message because you are subscribed to the Google Groups
> "haskell-stack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to haskell-stack+unsubscr...@googlegroups.com.
> To post to this group, send email to haskell-stack@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/haskell-stack/277bdd66-579f-49a8-b1f9-dcb9928a147a%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/haskell-stack/277bdd66-579f-49a8-b1f9-dcb9928a147a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to haskell-stack+unsubscr...@googlegroups.com.
To post to this group, send email to haskell-stack@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/CAKA2JgLNAcWdz8JUYo14LKVsrOpzwOtZjkCFqB_NsSehfdN03A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to