[Haskell-beginners] cabal repl issue

David McBride toad3k at gmail.com
Fri Oct 21 14:56:55 UTC 2016


Just do this:

:m +System.Directory
:def pwd (\_ -> getCurrentDirectory >>= print >> return "")

On Fri, Oct 21, 2016 at 10:35 AM, Lai Boon Hui <laiboonh at gmail.com> wrote:

> 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 at 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/20161021/81bfe668/attachment.html>


More information about the Beginners mailing list