Re: [Haskell-cafe] A Modest Records Proposal

2012-04-02 Thread Kyle Murphy
On Mon, Apr 2, 2012 at 16:30, Evan Laforge wrote: > On Mon, Apr 2, 2012 at 5:41 AM, Michael Snoyman wrote: >> On Mon, Apr 2, 2012 at 3:38 PM, Alp Mestanogullari wrote: >>> Lesson learned: for next year, write a Haskell program that tells if a given >>> -cafe thread or reddit discussion is a Apri

Re: [Haskell-cafe] A Modest Records Proposal

2012-04-02 Thread Evan Laforge
On Mon, Apr 2, 2012 at 5:41 AM, Michael Snoyman wrote: > On Mon, Apr 2, 2012 at 3:38 PM, Alp Mestanogullari > wrote: >> Lesson learned: for next year, write a Haskell program that tells if a given >> -cafe thread or reddit discussion is a April Fool's joke or not. > > import Data.Time > > main =

Re: [Haskell-cafe] A Modest Records Proposal

2012-04-02 Thread Christopher Done
On 2 April 2012 14:41, Michael Snoyman wrote: > import Data.Time > > main = do >    now <- getCurrentTime >    let (_, month, day) = toGregorian $ utctDay now >    putStrLn $ >        if month == 4 && day == 1 >            then "It's a joke" >            else "It's real" import Data.Time main = d

Re: [Haskell-cafe] A Modest Records Proposal

2012-04-02 Thread Michael Snoyman
On Mon, Apr 2, 2012 at 3:38 PM, Alp Mestanogullari wrote: > Lesson learned: for next year, write a Haskell program that tells if a given > -cafe thread or reddit discussion is a April Fool's joke or not. import Data.Time main = do now <- getCurrentTime let (_, month, day) = toGregorian $

Re: [Haskell-cafe] A Modest Records Proposal

2012-04-02 Thread Alp Mestanogullari
Lesson learned: for next year, write a Haskell program that tells if a given -cafe thread or reddit discussion is a April Fool's joke or not. On Sun, Apr 1, 2012 at 7:10 PM, Christopher Done wrote: > I actually read the first couple paragraphs and thought “sounds > interesting I'll read it later”

Re: [Haskell-cafe] A Modest Records Proposal

2012-04-01 Thread Christopher Done
I actually read the first couple paragraphs and thought “sounds interesting I'll read it later”. After reading it properly, I lol'd. > After some initial feedback, I'm going to create a page for the > Homotopy Extensional Records Proposal (HERP) on trac. There are really > only a few remaining que

Re: [Haskell-cafe] A Modest Records Proposal

2012-04-01 Thread Greg Weber
Obviously Gregory is not familiar with Homotopy. In fact, its isomorphism predicts that if someone named Greg is involved in a discussion, someone named Gregory will also become involved. Or that is what I get for responding to an e-mail without reading it on April 1st :) On Sun, Apr 1, 2012 at 7

Re: [Haskell-cafe] A Modest Records Proposal

2012-04-01 Thread Gregory Collins
Whoosh? :-) On Sun, Apr 1, 2012 at 3:54 PM, Greg Weber wrote: > Hi Gershom, > > This sounds very interesting even if I have no idea what you are > talking about :) > Please create a proposal linked from this page: > http://hackage.haskell.org/trac/ghc/wiki/Records > The first thing you should pr

Re: [Haskell-cafe] A Modest Records Proposal

2012-04-01 Thread Greg Weber
Hi Gershom, This sounds very interesting even if I have no idea what you are talking about :) Please create a proposal linked from this page: http://hackage.haskell.org/trac/ghc/wiki/Records The first thing you should probably do is explain the programmer's point of view. That ensures that we are

[Haskell-cafe] A Modest Records Proposal

2012-03-31 Thread Gershom B
The records discussion has been really complicated and confusing. But I have a suggestion that should provide a great deal of power to records, while being mostly[1] backwards-compatible with Haskell 2010. Consider this example: data A a = A{a:a, aa::a, aaa :: a -> A (a -> a)} data B a = B