[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell-beginners
Subject: Re: [Haskell-beginners] Import errors from a very simple program
From: John Sturdy <jcg.sturdy () gmail ! com>
Date: 2019-09-26 14:26:22
Message-ID: CAFJf9KPvYdNgK0bBd2UKbBkDHjdkbusk9oGN+t=JkatCtmzhgA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Thu, Sep 26, 2019 at 3:18 PM Daniel Trstenjak <daniel.trstenjak@gmail.com>
wrote:
> Hi John,
>
> 'ghc' won't automatically use the packages you've installed with 'cabal
> install',
> but you've to add them to the 'ghc' call.
>
Thanks, that'll be the key to what's going on. I had assumed that
installed packages would be automatically available for "import", as they
are in Python. (The program I'm writing has the same functionality as a
Python program I had written earlier, which probably biased me to thinking
that way.)
__John
[Attachment #5 (text/html)]
<div dir="ltr"><div dir="ltr">On Thu, Sep 26, 2019 at 3:18 PM Daniel Trstenjak <<a \
href="mailto:daniel.trstenjak@gmail.com">daniel.trstenjak@gmail.com</a>> \
wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Hi John,<br> <br>
'ghc' won't automatically use the packages you've installed with \
'cabal install',<br> but you've to add them to the 'ghc' \
call.<br></blockquote><div><br></div><div>Thanks, that'll be the key to \
what's going on. I had assumed that installed packages would be automatically \
available for "import", as they are in Python. (The program I'm \
writing has the same functionality as a Python program I had written earlier, which \
probably biased me to thinking that \
way.)</div><div><br></div><div>__John</div><div><br></div></div></div>
[Attachment #6 (text/plain)]
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic