
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

Just do this:
:m +System.Directory
:def pwd (\_ -> getCurrentDirectory >>= print >> return "")
On Fri, Oct 21, 2016 at 10:35 AM, Lai Boon Hui
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
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
participants (2)
-
David McBride
-
Lai Boon Hui