Daniel Fischer [EMAIL PROTECTED] writes:
ghci-6.6 [prints the result of IO actions] by default
I consider printing the value when it is used in an assignment a bug.
It makes it more difficult to test laziness issues or behavior on
e.g. large files.
Anybody know why it was changed to the
Am Mittwoch, 18. Oktober 2006 09:35 schrieb Ketil Malde:
Daniel Fischer [EMAIL PROTECTED] writes:
ghci-6.6 [prints the result of IO actions] by default
I consider printing the value when it is used in an assignment a bug.
It makes it more difficult to test laziness issues or behavior on
Hi all,
I'm really newbie to Haskell, and working on a program I'm trying to make
some testing.
I make some test on certain know values ( e.g. adding 10 to 15 must return
25) and some test on random values (eg. adding rnd1 to rnd2 must return
rnd1+rnd2).
The problem that makes me mad is the
Víctor A. Rodríguez wrote:
Hi all,
I'm really newbie to Haskell, and working on a program I'm trying to make
some testing.
I make some test on certain know values ( e.g. adding 10 to 15 must return
25) and some test on random values (eg. adding rnd1 to rnd2 must return
rnd1+rnd2).
The
On Oct 17, 2006, at 12:21 PM, Víctor A. Rodríguez wrote:
Hi all,
I'm really newbie to Haskell, and working on a program I'm trying
to make
some testing.
I make some test on certain know values ( e.g. adding 10 to 15 must
return
25) and some test on random values (eg. adding rnd1 to rnd2
On Tue, Oct 17, 2006 at 01:21:38PM -0300, V?ctor A. Rodr?guez wrote:
To: haskell-cafe@haskell.org
From: Víctor A. Rodríguez [EMAIL PROTECTED]
Date: Tue, 17 Oct 2006 13:21:38 -0300
Subject: [Haskell-cafe] Newbie and working with IO Int and Int
Hi all,
I'm really newbie to Haskell
Hi,
What's wrong with doing it this way?
-- ** UNTESTED CODE **
verifyAdd :: Int -gt; Int -gt; Int -gt; Bool
verifyAdd a b sum | a + b == sum = True
otherwise= False
testAddMundane :: Int -gt; Int -gt; Bool
testAddMundane a b = verifyAdd a b (a + b)
-- all the
What's wrong with doing it this way?
-- ** UNTESTED CODE **
verifyAdd :: Int -gt; Int -gt; Int -gt; Bool
verifyAdd a b sum | a + b == sum = True
otherwise = False
testAddMundane :: Int -gt; Int -gt; Bool
testAddMundane a b = verifyAdd a b (a + b)
-- all the IO-dependent stuff is below
On Oct 17, 2006, at 1:37 PM, Víctor A. Rodríguez wrote:
What's wrong with doing it this way?
-- ** UNTESTED CODE **
verifyAdd :: Int -gt; Int -gt; Int -gt; Bool
verifyAdd a b sum | a + b == sum = True
otherwise = False
testAddMundane :: Int -gt; Int -gt; Bool
testAddMundane a b = verifyAdd
Am Dienstag, 17. Oktober 2006 19:37 schrieb Víctor A. Rodríguez:
What's wrong with doing it this way?
-- ** UNTESTED CODE **
verifyAdd :: Int -gt; Int -gt; Int -gt; Bool
verifyAdd a b sum | a + b == sum = True
otherwise = False
testAddMundane :: Int -gt; Int -gt; Bool
10 matches
Mail list logo