Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. import Control.Lens.Tutorial (Dan Phillips) 2. Re: import Control.Lens.Tutorial (adv_zxy) 3. Re: import Control.Lens.Tutorial (Dan Phillips) ---------------------------------------------------------------------- Message: 1 Date: Fri, 5 Aug 2016 00:26:17 +1000 From: Dan Phillips <d...@dp.id.au> To: beginners@haskell.org Subject: [Haskell-beginners] import Control.Lens.Tutorial Message-ID: <caavd_g5yqvdxvj1ml+dot+kaahnvc3cgofvu9fydgkkbovo...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" 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-0001.html> ------------------------------ Message: 2 Date: Thu, 04 Aug 2016 14:32:59 +0000 From: adv_zxy <frefreak....@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] import Control.Lens.Tutorial Message-ID: <CAGBnttjuBVczSqXTcO7mx55aD0=suv2_grimq0dsp8dk85i...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Have you tried 'stack exec -- ghci'? This way ghci should be able to find the packages stack installed. On Thu, Aug 4, 2016, 10:27 PM Dan Phillips <d...@dp.id.au> wrote: > 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 > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > -- Xiangyu Zhu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160804/cb2cc653/attachment-0001.html> ------------------------------ Message: 3 Date: Fri, 5 Aug 2016 00:41:35 +1000 From: Dan Phillips <d...@dp.id.au> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] import Control.Lens.Tutorial Message-ID: <caavd_g6x3uagszpba7ipv6bdrjqrycxbkrhx0hhp8dw9rzu...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Awesome. That works. Thanks a lot. 2016-08-05 0:32 GMT+10:00 adv_zxy <frefreak....@gmail.com>: > Have you tried 'stack exec -- ghci'? This way ghci should be able to find > the packages stack installed. > > On Thu, Aug 4, 2016, 10:27 PM Dan Phillips <d...@dp.id.au> wrote: > >> 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 >> _______________________________________________ >> Beginners mailing list >> Beginners@haskell.org >> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners >> > -- > > Xiangyu Zhu > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160805/face3b7e/attachment-0001.html> ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 98, Issue 4 ****************************************