[Haskell-cafe] Slavomir Kaslev has invited you to radiusIM.com

2008-10-26 Thread Slavomir Kaslev
Slavomir Kaslev ([EMAIL PROTECTED]) has invited you to check out radiusIM.com. Their username on radiusIM is hikercho. radiusIM is the Social Instant Messenger. Connect with people from all over the world and also IM your buddies on MSN, AIM/AOL/ICQ, Yahoo, and Google Talk

Re: [Haskell-cafe] Slavomir Kaslev has invited you to radiusIM.com

2008-10-26 Thread Slavomir Kaslev
Sorry for the noise everyone. Next time I'll think twice before hiting 'Send to all my contacts' buton. Cheers. 2008/10/26 Slavomir Kaslev [EMAIL PROTECTED]: Slavomir Kaslev ([EMAIL PROTECTED]) has invited you to check out radiusIM.com. Their username

[Haskell-cafe] I want my free (and good looking) parser!

2008-10-06 Thread Slavomir Kaslev
.] The problem is that freeParser, although useful, is far from elegant. It's something that I came up with by trial and error. In short: it's a hack. I would like to hear your suggestions about how it can be beautified. Thank you in advance. Cheers! -- Slavomir Kaslev

[Haskell-cafe] Re: I want my free (and good looking) parser!

2008-10-06 Thread Slavomir Kaslev
On Mon, Oct 6, 2008 at 8:07 PM, Christian Maeder [EMAIL PROTECTED] wrote: Slavomir Kaslev wrote: freeParser = freeParser' minBound where enumAll' :: (Bounded a, Enum a) = a - [a] enumAll' _ = enumAll freeParser' :: (Enum a, Bounded a, Show a, Read a) = a - Parser

[Haskell-Cafe] Quick question for a slow program

2008-06-07 Thread Slavomir Kaslev
in advance. Cheers. -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Boost equivalent

2007-02-01 Thread Slavomir Kaslev
windows framework. Are there any projects going in this direction? -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] [Haskell] Defining Cg, HLSL style vectors in Haskell

2006-11-30 Thread Slavomir Kaslev
. For vector to vector, vector to matrix, etc. multiplication there is mul. Cheers. -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] [Haskell] Defining Cg, HLSL style vectors in Haskell

2006-11-29 Thread Slavomir Kaslev
On 11/29/06, Krasimir Angelov [EMAIL PROTECTED] wrote: Hi Slavomir, On 11/28/06, Slavomir Kaslev [EMAIL PROTECTED] wrote: instance Num Float3 where . signum a | a == Float3 0 0 0 = 0 | otherwise = 1 signum has a natural generalization for vectors. signum v

[Haskell-cafe] [Haskell] Defining Cg, HLSL style vectors in Haskell

2006-11-28 Thread Slavomir Kaslev
the definitions of floatn and manually change their types to intn respectfully. Cheers. -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] [Haskell] Defining Cg, HLSL style vectors in Haskell

2006-11-28 Thread Slavomir Kaslev
sense. What would you do, if you were writing this kind of library? Cheers. -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] [Haskell] Defining Cg, HLSL style vectors in Haskell

2006-11-28 Thread Slavomir Kaslev
On 11/28/06, Slavomir Kaslev [EMAIL PROTECTED] wrote: On 11/28/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: Hello Slavomir, Tuesday, November 28, 2006, 3:46:13 PM, you wrote: Last question: Does haskell have something like C++ templates? For example, some time in the future I may need

Re: [Haskell-cafe] [Haskell] Defining Cg, HLSL style vectors in Haskell

2006-11-28 Thread Slavomir Kaslev
On 11/28/06, Brian Hulley [EMAIL PROTECTED] wrote: Slavomir Kaslev wrote: I have to define a couple of float2, float3, float4 Cg, HLSL style vectors in Haskell. At first I was tempted to make them instances of Num, Floating, RealFrac, etc. but some of the functions defined in those classes

Re: [Haskell-cafe] Module visibility of data type constructors

2006-11-05 Thread Slavomir Kaslev
certainly lack proper Haskell-ish terminology. I apologize for that. -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Module visibility of data type constructors

2006-11-04 Thread Slavomir Kaslev
as: data Bar = Baz Baz isn't visible outside Foo. Is this the correct behavior or is it bug in ghc? Cheers. -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Module visibility of data type constructors

2006-11-04 Thread Slavomir Kaslev
On 11/4/06, Matthias Fischmann [EMAIL PROTECTED] wrote: On Sat, Nov 04, 2006 at 09:39:39PM +0200, Slavomir Kaslev wrote: To: haskell-cafe@haskell.org From: Slavomir Kaslev [EMAIL PROTECTED] Date: Sat, 4 Nov 2006 21:39:39 +0200 Subject: [Haskell-cafe] Module visibility of data type

Re: Re[2]: [Haskell-cafe] Class

2006-11-03 Thread Slavomir Kaslev
, Bulatmailto:[EMAIL PROTECTED] Wow. Thank you for the comprehensive list. I feel almost obligated reading =-) Cheers. -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Fwd: [Haskell-cafe] Class

2006-11-02 Thread Slavomir Kaslev
-- Forwarded message -- From: Slavomir Kaslev [EMAIL PROTECTED] Date: Nov 2, 2006 10:47 AM Subject: Re: [Haskell-cafe] Class To: Daniel Fischer [EMAIL PROTECTED] On 11/2/06, Daniel Fischer [EMAIL PROTECTED] wrote: Am Donnerstag, 2. November 2006 00:06 schrieb Slavomir Kaslev

Fwd: [Haskell-cafe] Class

2006-11-02 Thread Slavomir Kaslev
instance definitions like 'instance Show a = Visible a where ...'. Why? -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Class

2006-11-02 Thread Slavomir Kaslev
On 11/2/06, Sebastian Sylvan [EMAIL PROTECTED] wrote: On 11/2/06, Slavomir Kaslev [EMAIL PROTECTED] wrote: Little by little, I think I am getting closer. class Show a = Visible a where toString :: a - String toString = show size :: a - Int size = length . show Is just

[Haskell-cafe] Class

2006-11-01 Thread Slavomir Kaslev
). Therefore, I can't see any reason why toString function can't call show from those instances. Can someone please enlighten my (still) C++ thinking head? -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

[Haskell-cafe] Re: Class

2006-11-01 Thread Slavomir Kaslev
Err, sorry for the meaningless mail subject. Should be 'Newbie class problem' or something like that. -- Slavomir Kaslev ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe