Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://www.haskell.org/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: haskell-platform on arch (Michael Xavier) 2. Re: haskell-platform on arch (Bernardo Barros) 3. Int V.S. Word32 (Haisheng Wu) ---------------------------------------------------------------------- Message: 1 Date: Fri, 18 Nov 2011 08:20:00 -0800 From: Michael Xavier <nemesisdes...@gmail.com> Subject: Re: [Haskell-beginners] haskell-platform on arch To: Vesa Kaihlavirta <vpkai...@gmail.com> Cc: Haskell Beginners <beginners@haskell.org> Message-ID: <CANk=zmg-v7vbdwe5z8j_ywgpau+jja4bcuyudo+wwmmh4qu...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Thanks guys. I must have been a little confused by the difference between platform and GHC. I was reading the Yesod book at the time which I think (probably erroneously) mentions GHC 7.2 alongside recommending Haskell Platform, which does not seem possible. On Fri, Nov 18, 2011 at 1:29 AM, Vesa Kaihlavirta <vpkai...@gmail.com>wrote: > On Fri, Nov 18, 2011 at 7:18 AM, Bernardo Barros > <bernardobarr...@gmail.com> wrote: > > The last release of Haskell Platform has ghc version 7.0.3. There > > is nothing outdated in arch... You may be referring to the ghc > > 7.2, right? It is not in Haskell Platform yet. > > > > ?? >> pacman -Ss haskell-platform extra/haskell-platform > > 2011.2.0.0-4 [0.00 M] [installed] The Haskell Platform > > Yes, that's the reason why our ghc is lagging so much. In fact, we > have plans to stop supporting the platform mainly for this reason. > > In the near future (hopefully in a month or so), the our extra > repository would only contain the latest stable ghc (currently at > 7.2.2) and cabal-install (plus its deps). > > --vk > -- Michael Xavier http://www.michaelxavier.net LinkedIn <http://www.linkedin.com/pub/michael-xavier/13/b02/a26> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20111118/7247aaa1/attachment-0001.htm> ------------------------------ Message: 2 Date: Fri, 18 Nov 2011 09:53:16 -0800 From: Bernardo Barros <bernardobarr...@gmail.com> Subject: Re: [Haskell-beginners] haskell-platform on arch To: Michael Xavier <nemesisdes...@gmail.com> Cc: Haskell Beginners <beginners@haskell.org> Message-ID: <caoeekgvhzmjx344ja+eu1ctup4ncjvfq4s+tjmfogeqybse...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 actually haskell-platform is an empty package with a set of dependencies (ghc, cabal, haddock etc) ------------------------------ Message: 3 Date: Sat, 19 Nov 2011 16:09:50 +0800 From: Haisheng Wu <fre...@gmail.com> Subject: [Haskell-beginners] Int V.S. Word32 To: Haskell Beginer <beginners@haskell.org> Message-ID: <cafj8lzdhbc+hrxuidmkco2edb3qd8ds2gtjryjdddgipzr4...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Hello, I got great performance difference for the following code if I used type `Int` rather than `Data.Word.Word32`. Anyone can help to explain why such difference? Thanks a lot. -Simon module Main where import Data.Word main :: IO () main = print $ p14 p14 = maximum [ (startChain n 0, n) | n <- [2..1000000] ] startChain :: Word32 -> Int -> Int startChain 1 count = count + 1 startChain n count = startChain (intTransform n) (count+1) intTransform :: Word32 -> Word32 intTransform n | even n = n `div` 2 | otherwise = 3 * n + 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20111119/9c7f8398/attachment-0001.htm> ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 41, Issue 24 *****************************************