[Haskell-beginners] Trying to install "Craft3e" from Hackage using stack
Albin Otterhäll
gmane at otterhall.com
Sat Apr 16 08:28:07 UTC 2016
On 2016-04-16 02:36, Simon Jakobi wrote:
> Assuming that you would keep any book-related code in a local project,
> here's how you'd create a local project with a dependency on Craft3e:
>
> # Create a new project using ghc-7.8 (due to Craft3e's dependency on mtl <2.2)
> $ stack --resolver ghc-7.8 new craft
> $ cd craft
> # Edit the library section of craft.cabal to contain a dependency on Craft3e:
> #
> # build-depends: base >= 4.7 && < 5
> # , Craft3e
> #
> # Calculate a consistent set of packages to use in the project:
> $ stack solver --update-config
>
> Now you can write exercises etc. as library modules in the src
> directory and use them interactively with stack repl.
>
> If you haven't used stack before, you might also want to take a look
> at the stack guide:
> http://docs.haskellstack.org/en/stable/GUIDE/
>
> Cheers,
> Simon
>
I don't know if it's possible with the method you described, but I need
to be able to import some files into GHCi. They contain function
definitions that I have to be able to use in GHCi.
Regards,
Albin
More information about the Beginners
mailing list