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 Package for Mac issues (Alba Marchisio)
   2.  Copy record with mutations? (Andrew n marshall)
   3. Re:  Copy record with mutations? (Christopher Done)


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

Message: 1
Date: Wed, 13 Apr 2011 15:20:27 +0200
From: Alba Marchisio <[email protected]>
Subject: Re: [Haskell-beginners] Haskell Package for Mac issues
To: Andrew n marshall <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

GHC 7.0.3 solve the compatibility problems between Xcode 4 and GHC.
No news about a future release of Haskell Platform. Sorry.

Alba.

2011/4/5 Andrew n marshall <[email protected]>

>
> I've been using the Haskell package for the last week to learn Haskell, but
> I've found several issues that make it feel like abandonware (which I know
> its not).
>
> I'm running OS X 10.6.7 with XCode 4 and installed the Haskell Platform
> 2011.2.0.0-x86_64.pkg.
> (I just realized this is labeled an experiment build.  I hope that isn't
> the root of my problems.  Tell me if it is.)
>
> ghci and runhaskell all work fine, which has been enough to get me into the
> language (which I'm quite enjoying).
>
> ghc will not compile the simplest program without manually specifying
> -L/usr/lib:
>
> $ cat hello_world.hs
> main = putStrLn "hello, world"
>
> $ ghc --make hello_world
> Linking hello_world ...
> ld: library not found for -lcrt1.10.5.o
> collect2: ld returned 1 exit status
>
> $ ghc -L/usr/lib --make hello_world
> Linking hello_world ...
> ld: warning: -read_only_relocs cannot be used with x86_64
> ld: warning: could not create compact unwind for _ffi_call_unix64: does not 
> use RBP or RSP based frame
>
>   Seems like a pretty important directory to include, making it feel like a
> very serious oversight.  I've been told this is because the Haskell Package
> is linked to the /Developer/SDKs/MacOSX10.5.sdk/ directory, even though
> the package is explicitly labeled for 10.6.
>
> This error comes up in Cabal installs as well.  In fact, I have not been
> able to get a singe Cabal install to succeed out-of-the-box. I've tried a
> variety of packages such as vec, pandoc, yi.
>
> I'm understandably hesitant to just symlink my entire 10.6 SDK as 10.5 just
> to get this to work.  I would greatly appreciate alternative solutions.
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110413/c22d8cfd/attachment-0001.htm>

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

Message: 2
Date: Wed, 13 Apr 2011 08:22:14 -0700
From: Andrew n marshall <[email protected]>
Subject: [Haskell-beginners] Copy record with mutations?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Is there a syntax or function to copy a record, but with select fields
populated with new values?

For example, extending LYAH's Car

let stang67 = Car {company="Ford", model="Mustang", year=1967}
let stang68 = stang67 `mutate` Car {year=1968}


such that company and model are "inherited".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110413/96b1a4b5/attachment-0001.htm>

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

Message: 3
Date: Wed, 13 Apr 2011 17:27:08 +0200
From: Christopher Done <[email protected]>
Subject: Re: [Haskell-beginners] Copy record with mutations?
To: Andrew n marshall <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

On 13 April 2011 17:22, Andrew n marshall <[email protected]>wrote:

>
> Is there a syntax or function to copy a record, but with select fields
> populated with new values?
>
> For example, extending LYAH's Car
>
> let stang67 = Car {company="Ford", model="Mustang", year=1967}
> let stang68 = stang67 `mutate` Car {year=1968}
>
>
let stang67 = Car {company="Ford", model="Mustang", year=1967}
let stang68 = stang67 { year = 1968 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110413/c26c932b/attachment.htm>

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

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 34, Issue 23
*****************************************

Reply via email to