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
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
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
-- 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
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
--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
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
hey Suja@haskell.org,
your mail address is
faked.
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