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. IO question (mike h) 2. Re: IO question (David McBride) 3. Re: IO question (mike h) 4. How to install new GHC ? (Baa) 5. Re: How to install new GHC ? (Sylvain Henry) 6. Re: How to install new GHC ? (Francesco Ariis) ---------------------------------------------------------------------- Message: 1 Date: Mon, 11 Dec 2017 20:56:28 +0000 From: mike h <mike_k_hough...@yahoo.co.uk> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: [Haskell-beginners] IO question Message-ID: <2f486570-ee98-45ca-8880-6b24eabaf...@yahoo.co.uk> Content-Type: text/plain; charset=utf-8 I have input <- readFile “data.txt” let input’ = splitOn “,” input …. How do I make that into just one line? Thanks Mike ------------------------------ Message: 2 Date: Mon, 11 Dec 2017 16:00:02 -0500 From: David McBride <toa...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] IO question Message-ID: <can+tr41hoszk_quuquok77ybb0p1+nroe_zou_rrhbwsj-z...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" splitOn "," <$> readFile "data.txt" or perhaps readFile "data.txt" >>= return . splitOn "," On Mon, Dec 11, 2017 at 3:56 PM, mike h <mike_k_hough...@yahoo.co.uk> wrote: > I have > > input <- readFile “data.txt” > let input’ = splitOn “,” input > …. > > How do I make that into just one line? > > Thanks > > Mike > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20171211/42675d3e/attachment-0001.html> ------------------------------ Message: 3 Date: Mon, 11 Dec 2017 21:24:05 +0000 From: mike h <mike_k_hough...@yahoo.co.uk> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] IO question Message-ID: <d4e77725-2b45-49c6-96f9-1961500a7...@yahoo.co.uk> Content-Type: text/plain; charset="utf-8" Thank you David. Before posting I tried readFile "data.txt" >>= … but got errors as I didn’t use return.!! Mike > On 11 Dec 2017, at 21:00, David McBride <toa...@gmail.com> wrote: > > splitOn "," <$> readFile "data.txt" > > or perhaps > > readFile "data.txt" >>= return . splitOn "," > > On Mon, Dec 11, 2017 at 3:56 PM, mike h <mike_k_hough...@yahoo.co.uk > <mailto:mike_k_hough...@yahoo.co.uk>> wrote: > I have > > input <- readFile “data.txt” > let input’ = splitOn “,” input > …. > > How do I make that into just one line? > > Thanks > > Mike > _______________________________________________ > Beginners mailing list > Beginners@haskell.org <mailto:Beginners@haskell.org> > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > <http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners> > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20171211/5027b4a8/attachment-0001.html> ------------------------------ Message: 4 Date: Tue, 12 Dec 2017 13:56:03 +0200 From: Baa <aqua...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: [Haskell-beginners] How to install new GHC ? Message-ID: <20171212135603.61ee055f@Pavel> Content-Type: text/plain; charset=US-ASCII Hello, All, I want to switch to the new GHC (8.2.2) because I hit some bug in GHC and suppose that it may be fixed in the new version. So, to try it I changed "resolver: XXX" in my .yaml-files to "lts-9.18". Also I done something else (I don't remember what exactly) and call `stack setup ... --reinstall ...`. New GHC have been installed. And I switched to new LTS - I see it 100%. But when I run `stack build`, IMHO compiller is old, because if I call `stack ghci` I see that old GHC (8.0.2) is calling. I'm not familiar with stack/Haskell tools in-depth and may miss something! For example, I know that LTS-9.18 is last stable, GHC 8.2.2 is last too, but in Stackage seems that 9.18 corresponds to 8.2.2. If I run `stack setup` in the directory with my project again I get: --cut-- stack will use a sandboxed GHC it installed For more information on paths, see 'stack path' and 'stack exec env' To use this GHC and packages outside of a project, consider using: stack ghc, stack ghci, stack runghc, or stack exec --cut-- Would somebody explain me what is wrong here and how I can test a project with new 8.2.2 GHC? === Best regards, Paul ------------------------------ Message: 5 Date: Tue, 12 Dec 2017 13:02:49 +0100 From: Sylvain Henry <sylv...@haskus.fr> To: beginners@haskell.org Subject: Re: [Haskell-beginners] How to install new GHC ? Message-ID: <eaeadb85-9c63-c7e6-b55a-caae145e7...@haskus.fr> Content-Type: text/plain; charset=utf-8; format=flowed Hi, LTS-9.18 uses GHC 8.0.2. You can try a nightly resolver to test GHC 8.2.2, e.g. https://www.stackage.org/nightly-2017-12-10 Sylvain On 12/12/2017 12:56, Baa wrote: > Hello, All, > > I want to switch to the new GHC (8.2.2) because I hit some > bug in GHC and suppose that it may be fixed in the new version. So, to > try it I changed "resolver: XXX" in my .yaml-files to "lts-9.18". Also I > done something else (I don't remember what exactly) and call > `stack setup ... --reinstall ...`. New GHC have been installed. And I > switched to new LTS - I see it 100%. > But when I run `stack build`, IMHO compiller is old, because if I call > `stack ghci` I see that old GHC (8.0.2) is calling. I'm not familiar > with stack/Haskell tools in-depth and may miss something! For example, > I know that LTS-9.18 is last stable, GHC 8.2.2 is last too, but in > Stackage seems that 9.18 corresponds to 8.2.2. > > If I run `stack setup` in the directory with my project again I get: > > --cut-- > stack will use a sandboxed GHC it installed > For more information on paths, see 'stack path' and 'stack exec env' > To use this GHC and packages outside of a project, consider using: > stack ghc, stack ghci, stack runghc, or stack exec > --cut-- > > Would somebody explain me what is wrong here and how I can test a > project with new 8.2.2 GHC? > > === > Best regards, Paul > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ Message: 6 Date: Tue, 12 Dec 2017 13:09:15 +0100 From: Francesco Ariis <fa...@ariis.it> To: beginners@haskell.org Subject: Re: [Haskell-beginners] How to install new GHC ? Message-ID: <20171212120915.6epux6bhnx4gb...@x60s.casa> Content-Type: text/plain; charset=us-ascii On Tue, Dec 12, 2017 at 01:56:03PM +0200, Baa wrote: > Would somebody explain me what is wrong here and how I can test a > project with new 8.2.2 GHC? Hello Paul, I don't think stack lts has 8.2.2 just yet. Use a nightly or download/install ghc from here and compile your project with the new `cabal new-build`. [1] https://www.haskell.org/ghc/download_ghc_8_2_2.html#binaries ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 114, Issue 15 ******************************************