[Haskell-beginners] Trying to install "Craft3e" from Hackage using stack

Albin Otterhäll gmane at otterhall.com
Sat Apr 16 17:00:22 UTC 2016


On 2016-04-16 16:15, Simon Jakobi wrote:
>> 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.
> 
> Sorry, I should have taken a look at the package description before
> writing a response.
> That should work:
> 
> $ stack unpack Craft3e
> $ cd Craft3e-0.1.0.10
> $ stack init
> $ stack build
> 
> You can then use stack ghci (stack's wrapper around ghci) and
> 
> λ> import Chapter1 -- for example
> 
> Cheers,
> Simon
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> 

Thank, it works! For ev. readers with the same problem: Do note that you
have to use `stack exec ghci [file]` for it to work.

Regards,
Albin



More information about the Beginners mailing list