for sending the same mail. I didn't notice you set Reply to.
--
Koji Nakahara
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Fri, 12 Nov 2004 01:10:06 +0900
Koji Nakahara [EMAIL PROTECTED] wrote:
On Thu, 11 Nov 2004 10:49:13 +0100 (MEZ)
Henning Thielemann [EMAIL PROTECTED] wrote:
The computation sample rate should be propagated through the network as
follows:
If in a component of equal sample rate some
. I could
write
You can write:
instance Typeable a = Typeable (MVar a) where
typeOf (x :: MVar a) =
mkAppTy (mkTyCon Control.Concurrent.MVar.MVar) [typeOf (undefined::a)]
Hope it helps,
Koji Nakahara
___
Haskell-Cafe mailing list
[EMAIL
the
most obvious (to me) test with Hugs and it doesn't work.
#!/usr/local/bin/runhugs
will do the trick. See hugs(1).
Haskell does really good job for me where perl had been used!
--
Koji Nakahara
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http
. (MonadTrans t, Monad (t m)) =
Foo (forall a. t m a - m a) (t m Int)
prog :: Foo IO - IO Int
prog (Foo run op) = run $ do
lift $ putStrLn Running prog
op
test = prog (Foo (flip evalStateT 0) get)
--
Koji Nakahara
___
Haskell-Cafe
Hi,
Another solution:
f m n = concat $ take m $ tail xs
where
xs = [[]]:map (\x - concatMap (\y - map (y:) x) [1..n]) xs
f 3 4 gives your f 4.
Hope it helps,
Koji Nakahara
On Sat, 31 Jan 2004 07:35:38 -0800 (PST)
Ron de Bruijn [EMAIL PROTECTED] wrote:
Hi there,
I have written
:
xs = [[]]:[[ y:z | y - [1..n], z - x] | x - xs]
Hope it helps,
Koji Nakahara
On Sun, 1 Feb 2004 15:22:01 +0900
Koji Nakahara [EMAIL PROTECTED] wrote:
Hi,
Another solution:
f m n = concat $ take m $ tail xs
where
xs = [[]]:map (\x - concatMap (\y - map (y:) x) [1..n]) xs
f
') = runState m s
in s `seq` runState (k a) s' -- force evaluation of the
state
m k = m = \_ - k
--
Koji Nakahara
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe
= g x in func h h
in order to make the program run faster.
But ,in the first place, is it meaningful to write let h = g x in func h h
in order to avoid re-evaluation of g x, on the assumption that h is CAF?
Thanks.
--
Koji Nakahara
___
Haskell-Cafe
want to use some C functions from haskell each of which is not pure but
the result of their sequential combination is pure. I'm planning to write
some functions like g above(but more complex and actually pure) and
considering the optimization of the code using them.
Thanks in advance.
Koji
On Fri, 20 Jun 2003 07:54:50 -0700
Hal Daume [EMAIL PROTECTED] wrote:
mine didn't either, until I increased the 200 to around 1500...it's
probably OS/memory specific.
Only 600 causes the stack overflow in my environment(FreeBSD, 640MB).
Interestingly, on GHCi, the program shows the elements
I did some experiments and now suspect that the culprit is the infinite list.
When I replace rmat with
rmat n = listArray ((1,1),(n,n)) [1..] -- no longer random
,
print (m ! (300, 300)) where m = rmat 800
fails again.
However, if I use a finite list as the second argument of listArray:
rmat
12 matches
Mail list logo