<div dir="ltr">Continue disregarding. Figured it out. Missing a language pragma.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 2, 2021 at 11:45 PM Galaxy Being <<a href="mailto:borgauf@gmail.com">borgauf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm trying to do a basic stack project named <font face="monospace">http-lesson</font> (Chapter 39 from <i>Get Programming with Haskell) </i>which starts out with this in Main.hs<div><br></div><div><font face="monospace">module Main where<br><br>import qualified Data.ByteString as B<br>import qualified Data.ByteString.Char8 as BC<br>import qualified Data.ByteString.Lazy as L<br>import qualified Data.ByteString.Lazy.Char8 as LC<br>import Network.HTTP.Simple</font></div><div><br></div><div>After doing <font face="monospace">stack new http-lesson</font>, the books says to modify the <font face="monospace">http-lesson.cabal</font> file in the project, adding <font face="monospace">bytestring </font>and <font face="monospace">http-conduit </font><font face="arial, sans-serif">for the imports noted above</font><br clear="all"><div><br></div><div><font face="monospace">executable http-lesson-exe<br> main-is: Main.hs<br> other-modules:<br> Paths_http_lesson<br> hs-source-dirs:<br> app<br> ghc-options: -threaded -rtsopts -with-rtsopts=-N<br> build-depends:<br> base >=4.7 && <5<br> , http-lesson</font></div><div><font face="monospace"> , bytestring<br> , http-conduit<br> default-language: Haskell2010</font><br></div><div><br></div><div>Being a beginner, I follow the cookbook-like directions, i.e., I next run <font face="monospace">stack build </font>. . . and it errors out, not finding the imported stuff. But then when I check the <font face="monospace">http-lesson.cabal</font> file, the extra packages I added have been removed. Hunting around, I find <a href="https://schooloffp.co/2020/12/05/whirlwind-tour-of-stack-for-beginners.html" target="_blank">this</a> that tells me to put the extra packages in <font face="monospace">package.yaml</font>. Very confused at this point.</div><br><div dir="ltr"><div dir="ltr"><div>⨽<br></div>Lawrence Bottorff<div>Grand Marais, MN, USA</div><div><a href="mailto:borgauf@gmail.com" target="_blank">borgauf@gmail.com</a></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>⨽<br></div>Lawrence Bottorff<div>Grand Marais, MN, USA</div><div><a href="mailto:borgauf@gmail.com" target="_blank">borgauf@gmail.com</a></div></div></div>