Send Beginners mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
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 <[email protected]>
Subject: Re: [Haskell-beginners] haskell-platform on arch
To: Vesa Kaihlavirta <[email protected]>
Cc: Haskell Beginners <[email protected]>
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 <[email protected]>wrote:
> On Fri, Nov 18, 2011 at 7:18 AM, Bernardo Barros
> <[email protected]> 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 <[email protected]>
Subject: Re: [Haskell-beginners] haskell-platform on arch
To: Michael Xavier <[email protected]>
Cc: Haskell Beginners <[email protected]>
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 <[email protected]>
Subject: [Haskell-beginners] Int V.S. Word32
To: Haskell Beginer <[email protected]>
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
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 41, Issue 24
*****************************************