<div dir="ltr">Here's the GHC docs on "packages":<br><a href="https://downloads.haskell.org/~ghc/8.4.1/docs/html/users_guide/packages.html">https://downloads.haskell.org/~ghc/8.4.1/docs/html/users_guide/packages.html</a><br>tl;dr a package is a bundle of modules. Packages are installed into a ghc package database. (Stack manages ghc package databases for you.)<br><br>"dependencies" generally refers to any other packages required to build a given project or package.<br><br>For more info on "packages" and "projects" (with regards to stack), see<br><a href="https://docs.haskellstack.org/en/stable/stack_yaml_vs_cabal_package_file/#package-versus-project">https://docs.haskellstack.org/en/stable/stack_yaml_vs_cabal_package_file/#package-versus-project</a><br><br>A "Stackage snapshot" is a collection of packages, where each package is pinned to a specific version of that package.<br><a href="https://docs.haskellstack.org/en/stable/stack_yaml_vs_cabal_package_file/#resolvers-and-snapshots">https://docs.haskellstack.org/en/stable/stack_yaml_vs_cabal_package_file/#resolvers-and-snapshots</a><br><br><a href="https://docs.haskellstack.org">https://docs.haskellstack.org</a> is generally the place to go for info like this. And of course, if you have any questions, you're welcome to ask them here, or on the haskell-stack mailing list: <a href="https://groups.google.com/forum/#!forum/haskell-stack">https://groups.google.com/forum/#!forum/haskell-stack</a><div class="gmail_extra" style=""><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">-- Dan Burton</div></div>
<br><div class="gmail_quote">On Sat, Apr 7, 2018 at 12:53 PM, Dennis Raddle <span dir="ltr"><<a href="mailto:dennis.raddle@gmail.com" target="_blank">dennis.raddle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Now I'm trying to use stack to install and run GCHJS. Can someone help me figure out this error?<div><br></div><div>I first created project 'proj01' using the ghcjs template via</div><div><br></div><div>    stack new proj01 ghcjs</div><div><br></div><div>Then I typed </div><div><br></div><div>    stack build</div><div><br></div><div>It ran for a while, then gave an error messages that starts</div><div><br></div><div>    "While building custom Setup.hs for package semigroupoids-5.0.0.4 using .... <very long description>, Process exited with code ExitFailure 1"</div><div><br></div><div>But it didn't halt. Instead it started compiling Main.hs, and ended up saying</div><div><br></div><div>"at least the following dependencies are missing: tagged >= 0.8.5 && <1 && ==0.8.1"</div><div><br></div><div>I tried adding "tagged" to the extra-deps in the stack.yaml, but it didn't help.</div><div><br></div><div>While I'm posting, is there a resource that explains background to this? I don't know much about "packages," "snapshots," "dependencies", means of specifying versions, cabal, or YAML files. Everything I find online seems to assume some background knowledge of these things. For instance the stack documentation talks about snapshots, but I can't find an explanation that I understand for what a "snapshot" actually is. Ditto for all these many concepts that go into configuring and building. </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>D</div><div><br></div><div><br></div><div><br></div></font></span></div>
<br>______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.<br></blockquote></div><br></div></div>