Re: [Haskell-beginners] Beginners Digest, Vol 100, Issue 14

Hi David,
Thanks for chipping in. I found the solution to be to include "directory"
in cabal file "build-depends". I was confused because my stack ghci config
didn't need :m + System.directory to work. But somehow cabal repl does not
work without some kind of import.
On Sat, Oct 22, 2016 at 8:00 PM,
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-request@haskell.org
You can reach the person managing the list at beginners-owner@haskell.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..."
Today's Topics:
1. cabal repl issue (Lai Boon Hui) 2. Re: cabal repl issue (David McBride) 3. Re: Monadic functions definitions for free monadic DSL (Sumit Raja) 4. Re: Monadic functions definitions for free monadic DSL (Kim-Ee Yeoh)
----------------------------------------------------------------------
Message: 1 Date: Fri, 21 Oct 2016 22:35:19 +0800 From: Lai Boon Hui
To: beginners@haskell.org Subject: [Haskell-beginners] cabal repl issue Message-ID: Content-Type: text/plain; charset="utf-8" Hi all,
when i execute cabal repl i get this:
<interactive>:1:8: error:
Not in scope: ‘System.Directory.getCurrentDirectory’
No module named ‘System.Directory’ is imported. because my ghci.conf has :def pwd (\_-> System.Directory.getCurrentDirectory >>= print >> return "")
Does anyone know how i can include System.Directory somehow even though its not used in my cabal project?
-- Best Regards, Boon Hui
participants (1)
-
Lai Boon Hui