Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Can't build project properly (Galaxy Being)


----------------------------------------------------------------------

Message: 1
Date: Sat, 3 Jul 2021 16:57:54 -0500
From: Galaxy Being <borg...@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Can't build project properly
Message-ID:
        <cafahfsxykasxin1bmsrne4vsh4++trwsrzozczbd13cju_p...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Continue disregarding. Figured it out. Missing a language pragma.

On Fri, Jul 2, 2021 at 11:45 PM Galaxy Being <borg...@gmail.com> wrote:

> I'm trying to do a basic stack project named http-lesson (Chapter 39 from *Get
> Programming with Haskell) *which starts out with this in Main.hs
>
> module Main where
>
> import qualified Data.ByteString as B
> import qualified Data.ByteString.Char8 as BC
> import qualified Data.ByteString.Lazy as L
> import qualified Data.ByteString.Lazy.Char8 as LC
> import Network.HTTP.Simple
>
> After doing stack new http-lesson, the books says to modify the
> http-lesson.cabal file in the project, adding bytestring and http-conduit for
> the imports noted above
>
> executable http-lesson-exe
>   main-is: Main.hs
>   other-modules:
>       Paths_http_lesson
>   hs-source-dirs:
>       app
>   ghc-options: -threaded -rtsopts -with-rtsopts=-N
>   build-depends:
>       base >=4.7 && <5
>     , http-lesson
>     ,  bytestring
>     , http-conduit
>   default-language: Haskell2010
>
> Being a beginner, I follow the cookbook-like directions, i.e., I next run 
> stack
> build . . . and it errors out, not finding the imported stuff. But then
> when I check the http-lesson.cabal file, the extra packages I added
> have been removed. Hunting around, I find this
> <https://schooloffp.co/2020/12/05/whirlwind-tour-of-stack-for-beginners.html>
> that tells me to put the extra packages in package.yaml. Very confused at
> this point.
>
> ⨽
> Lawrence Bottorff
> Grand Marais, MN, USA
> borg...@gmail.com
>


-- 
⨽
Lawrence Bottorff
Grand Marais, MN, USA
borg...@gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20210703/95fa498b/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 156, Issue 3
*****************************************

Reply via email to