<div dir="ltr">Just do this:<br><div><br>:m +System.Directory<br>:def pwd (\_ -> getCurrentDirectory >>= print >> return "") <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 21, 2016 at 10:35 AM, Lai Boon Hui <span dir="ltr"><<a href="mailto:laiboonh@gmail.com" target="_blank">laiboonh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>when i execute cabal repl i get this:</div><div><br></div><div>
<p class="m_6480456485207508145gmail-p1"><span class="m_6480456485207508145gmail-s1"><interactive>:1:8: error:</span></p>
<p class="m_6480456485207508145gmail-p1"><span class="m_6480456485207508145gmail-s1"> Not in scope: ‘System.Directory.<wbr>getCurrentDirectory’</span></p>
<p class="m_6480456485207508145gmail-p1"><span class="m_6480456485207508145gmail-s1"> No module named ‘System.Directory’ is imported.</span></p></div><div><div>because my ghci.conf has</div><div>:def pwd (\_-> System.Directory.<wbr>getCurrentDirectory >>= print >> return "")<br></div><div><br></div><div>Does anyone know how i can include System.Directory somehow even though its not used in my cabal project?</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_6480456485207508145gmail_signature"><div dir="ltr">Best Regards,<div>Boon Hui</div></div></div>
</font></span></div></div>
<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>