<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">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" class="gmail_signature" data-smartmail="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></div></div>