[Haskell-beginners] import Control.Lens.Tutorial

Dan Phillips dan at dp.id.au
Thu Aug 4 14:26:17 UTC 2016


Hi all

I'm trying to follow this tutorial about lenses:

https://hackage.haskell.org/package/lens-tutorial-1.0.1/docs/Control-Lens-Tutorial.html


Right at the top of the tutorial,it says do this in ghci:

import Control.Lens.Tutorial


I tried that, but I got an error: "Could not find module
`Control.Lens.Tutorial'"

So I tried this:

D:\Sync\src\tutorials> stack install lens-tutorial
Run from outside a project, using implicit global project config
Using resolver: lts-6.9 from implicit global project's config file:
C:\Users\dan\AppData\Roaming\stack\global-project\stack.yaml
lens-tutorial-1.0.1: download
lens-tutorial-1.0.1: configure
lens-tutorial-1.0.1: build
lens-tutorial-1.0.1: copy/register

I'm not exactly sure what that did, but it looked promising. However, I
still get the same error in ghci as before when I do the import.

My question is, what do I need to do to get the import statement working in
ghci so I can follow the tutorial? I would be grateful for any guidance.
Thanks.

Regards
Dan Phillips
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160805/57956f86/attachment.html>


More information about the Beginners mailing list