On 4 Jan 2008, at 2:00 AM, Nicholls, Mark wrote:
You may be right...but learning is not an atomic thingwherever I
start I will get strange things happening.
The best place to start learning Haskell is with the simplest type
features, not the most complicated. And it's the simplest
]: [Haskell-cafe] Is there anyone out there who can
translate C# generics into Haskell?
Hello Mark,
Thursday, January 3, 2008, 6:40:13 PM, you wrote:
it would be hard to understand overlap without knowing both systems.
you will believe that you understand it, but things will go strange
ways :)
I
] Is there anyone out there who can translate
C# generics into Haskell?
Of course it depends what's inside the braces, and what you want to do
with it, but I'd be inclined to do something like this:
1) data IX a = IX { constructor :: Int - a, ... }
2) data IX a b = IX { constructor :: Int - b, func
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nicholls, Mark
Sent: Wednesday, January 02, 2008 5:41 PM
To: haskell-cafe@haskell.org
Subject: [Haskell-cafe] Is there anyone out there who can translate C#
generics into Haskell?
I'm trying to translate some standard C
To: Nicholls, Mark
Cc: haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] Is there anyone out there who can translate
C# generics into Haskell?
Hello Mark,
Wednesday, January 2, 2008, 7:40:31 PM, you wrote:
I'm trying to translate some standard C# constucts into Haskell...
some
it's meaningless. read
would expect some considerable overlap.
-Original Message-
From: Bulat Ziganshin [mailto:[EMAIL PROTECTED]
Sent: 02 January 2008 20:29
To: Nicholls, Mark
Cc: haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] Is there anyone out there who can translate
C# generics into Haskell
'interface'
implementation and type class instance declaration.
-Original Message-
From: Bulat Ziganshin [mailto:[EMAIL PROTECTED]
Sent: 03 January 2008 10:54
To: Nicholls, Mark
Cc: Bulat Ziganshin; haskell-cafe@haskell.org
Subject: Re[2]: [Haskell-cafe] Is there anyone out there who can
: Wednesday, January 02, 2008 5:41 PM
To: haskell-cafe@haskell.org
Subject: [Haskell-cafe] Is there anyone out there who can translate C#
generics into Haskell?
I'm trying to translate some standard C# constucts into Haskell... some
of this seems easy
Specifically
1)
Interface IX
{
}
2
PROTECTED] On Behalf Of Nicholls, Mark
Sent: Wednesday, January 02, 2008 5:41 PM
To: haskell-cafe@haskell.org
Subject: [Haskell-cafe] Is there anyone out there who can translate C#
generics into Haskell?
I'm trying to translate some standard C# constucts into Haskell... some
of this seems easy
PROTECTED]
Sent: 03 January 2008 10:54
To: Nicholls, Mark
Cc: Bulat Ziganshin; haskell-cafe@haskell.org
Subject: Re[2]: [Haskell-cafe] Is there anyone out there who can
translate C# generics into Haskell?
Hello Mark,
Thursday, January 3, 2008, 1:22:26 PM, you wrote:
because they have
: Re[4]: [Haskell-cafe] Is there anyone out there who can
translate C# generics into Haskell?
Hello Mark,
Thursday, January 3, 2008, 2:13:08 PM, you wrote:
of course *some* overlap exists but in order to understand it you
should know exact shape of both methods
when i tried to develop complex
On 3 Jan 2008, at 7:40 AM, Nicholls, Mark wrote:
I do not necessarily disagree
But if I can identify the overlapthen I have leant the
overlap...on
the cheap.
Not really. You still don't have the context which allows you to fit
the Haskell features into a complete system.
leant the overlap...on
the cheap.
-Original Message-
From: Bulat Ziganshin [mailto:[EMAIL PROTECTED]
Sent: 03 January 2008 14:39
To: Nicholls, Mark
Cc: Bulat Ziganshin; haskell-cafe@haskell.org
Subject: Re[4]: [Haskell-cafe] Is there anyone out there who can
translate C# generics
Peter Verswyvelen [EMAIL PROTECTED] writes:
Well, it's a good habit in Haskell to move the most important parameter to
the end of the argument list. See e.g.
http://www.haskell.org/haskellwiki/Parameter_order.
I must say I like these recommendations. As for the Data.Map examples,
the
I'm trying to translate some standard C# constucts into Haskell... some
of this seems easy
Specifically
1)
Interface IX
{
}
2)
Interface IXA
{
}
3)
Interface IXA
Where A : IY
{
}
4)
Interface IXA : IZ
Where A : IY
{
}
I can take a punt at the first 2but then it
Of course it depends what's inside the braces, and what you want to do with
it, but I'd be inclined to do something like this:
1) data IX a = IX { constructor :: Int - a, ... }
2) data IX a b = IX { constructor :: Int - b, func :: a - b, ... }
3) data IX a b = IX { iy :: IY a, ... }
4) data IX a
Hello Mark,
Wednesday, January 2, 2008, 7:40:31 PM, you wrote:
I'm trying to translate some standard C# constucts into Haskell... some
it's meaningless. read http://haskell.org/haskellwiki/OOP_vs_type_classes
and especially papers mentioned in the References
--
Best regards,
Bulat
Of Nicholls, Mark
Sent: Wednesday, January 02, 2008 5:41 PM
To: haskell-cafe@haskell.org
Subject: [Haskell-cafe] Is there anyone out there who can translate C#
generics into Haskell?
I'm trying to translate some standard C# constucts into Haskell... some
of this seems easy
Specifically
1
18 matches
Mail list logo