Re: Stupid wuestion about Monads :)

2003-06-11 Thread Marc Ziegert
google: "What the hell are Monads" http://www.abercrombiegroup.co.uk/~noel/research/monads.html IO in haskell is really easy, iff you understand the sense of monads. to understand sth. like "IO Bool" you have to remember that i.e. an array is no defined data type without the definition of its e

strange implementation - Re: Bits Problem

2003-04-06 Thread Marc Ziegert
I'm confused. Does it mean that objects basing on bits have to be of Num because of an default implementation that they don't use? A List of Bits should be instance of Bits, too. Instead of default imlementations that use Num functions, there could be an instance of all Integrals. (Integer is in

Re: Haskell help!

2003-03-26 Thread Marc Ziegert
list again, making a list of all the sequences that have that > score. These two steps seem fairly trivial, it's all the above stuff which > I'm struggling on. > > Rachel > > -Original Message- > From: Marc Ziegert [mailto:[EMAIL PROTECT

Fwd: Re: Haskell help!

2003-03-26 Thread Marc Ziegert
-- Weitergeleitete Nachricht -- Subject: Re: Haskell help! Date: Wed, 26 Mar 2003 23:57:42 +0100 From: Marc Ziegert <[EMAIL PROTECTED]> To: "Weix, Rachel Lynn" <[EMAIL PROTECTED]> i'm just programming the solution. imagine a matrix / a rectangle

Re: Haskell help!

2003-03-25 Thread Marc Ziegert
looks like a genetic algorithm, i've programmed years ago. :) i need the sourcecode to solve the problem. it seems that you "zip" the two strings together: unzip $ zip "abcde" "123" -> unzip [('a','1'),('b','2'),('c','3')] -> ("abc","123") i've no idea why you got "saaturn". - marc Am Diens

Re: Field labels must be globally unique?

2003-01-08 Thread Marc Ziegert
--Just changed the syntax: ... or BETTER just to split classes: type class HalfBody a = (Num a => (+), (-)) instance HalfBody Vector where (+) v1 v2 = ... (-) v1 v2 = ... ... - Original Message - From: "Marc Ziegert" <[EMAIL PROTECT

Re: Field labels must be globally unique?

2003-01-08 Thread Marc Ziegert
It would be nice to be able to overload class-functions like classes: instance (+), (-) -> Vector where (+) v1 v2 = ... (-) v1 v2 = ... instead of overloading parts of a class... (because of runtime-errors!) instance Num Vector where (+) v1 v

Re: help

2002-12-10 Thread Marc Ziegert
hey Suja@haskell.org, your mail address is faked.

Re: help

2002-12-10 Thread Marc Ziegert
what do you want to execute if you do not have a main function?   i.e. this LHS-file:   --rzsjztj ästrhü   > module Snoop where   rjstöh gitsh   > schnuck :: IO ()> schnuck = putStr "schnuck"   sdfthsrthk   > gumble :: IO