<div dir="ltr">Awesome. That works. Thanks a lot.<div class="gmail_extra"><br><div class="gmail_quote">2016-08-05 0:32 GMT+10:00 adv_zxy <span dir="ltr"><<a href="mailto:frefreak.zxy@gmail.com" target="_blank">frefreak.zxy@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Have you tried 'stack exec -- ghci'? This way ghci should be able to find the packages stack installed.</p>
<br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Thu, Aug 4, 2016, 10:27 PM Dan Phillips <<a href="mailto:dan@dp.id.au" target="_blank">dan@dp.id.au</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hi all</div><div><br></div><div>I'm trying to follow this tutorial about lenses:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><a href="https://hackage.haskell.org/package/lens-tutorial-1.0.1/docs/Control-Lens-Tutorial.html" target="_blank">https://hackage.haskell.org/<wbr>package/lens-tutorial-1.0.1/<wbr>docs/Control-Lens-Tutorial.<wbr>html</a></blockquote><div><br></div><div>Right at the top of the tutorial,it says do this in ghci:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>import Control.Lens.Tutorial</div></blockquote><div><br></div><div>I tried that, but I got an error: "Could not find module `Control.Lens.Tutorial'"</div><div><br></div><div>So I tried this:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>D:\Sync\src\tutorials> stack install lens-tutorial</div><div>Run from outside a project, using implicit global project config</div><div>Using resolver: lts-6.9 from implicit global project's config file: C:\Users\dan\AppData\Roaming\<wbr>stack\global-project\stack.<wbr>yaml</div><div>lens-tutorial-1.0.1: download</div><div>lens-tutorial-1.0.1: configure</div><div>lens-tutorial-1.0.1: build</div><div>lens-tutorial-1.0.1: copy/register</div><div><br></div></blockquote>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.<div><br></div><div>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.</div><div><br></div><div>Regards</div><div>Dan Phillips</div></div></div></div>
______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><p dir="ltr">Xiangyu Zhu</p>
</div>
</font></span><br>______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div></div>