On Wednesday 15 October 2003 11:07 am, Graham Klyne wrote:
> I've constructed a "listProduct" function that I think I've seen somewhere
> else... is it a standard function? If so, where is it defined?
Yes. It's called "sequence". It's defined in the prelude.
It works with arbitrary monads, not
On Wed, 15 Oct 2003 17:07:00 +0100
Graham Klyne <[EMAIL PROTECTED]> wrote:
> [[
> lp [] = [[]]
> lp (as:ass) = concatMap (\a -> (map (a:) (lp ass))) as
> ]]
>
> I think I should also be able to eliminate the lambda-abstraction, but
> I can't see how. I prefer the list comprehension, as I f
If you are using the CGI library in GHC 6.0 I had problems with the functions
pwrapper and connectToCGIScript. In their original form the request is
buffered and does not get passed on to the server. I had to modify the source
and turn all buffering off before it worked.
Tom
___
I've constructed a "listProduct" function that I think I've seen somewhere
else... is it a standard function? If so, where is it defined?
My code is:
[[
-- |Given a list of lists, construct a new list of lists where
-- each member of the new list is the same length as the original
-- list, and
I'm looking for an efficient matrix library for Haskell. Suggestions?
Shawn
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Mark Espinoza wrote:
A couple of days ago I posted a question about the cgi library,
which was not answered. What are appropriate courses of action for me
in a case like this?
Since Alastair Reid responded matter-of-factly and technically, I permit
myself to ask Mark Espinoza whether he thinks
>A couple of days ago I posted a question about the cgi library,
> which was not answered.
Hopefully, this repeat request will get you some answers (though I note that
Graham Klyne did answer your question at length on 23/6/2003).
In the future, a couple of things you might do to increase
Mark Espinoza writes:
> [making the cgi library work with ghc]
I might be way off here, but isn't the CGI library part of GHC's
distribution? GHC 6.x does come with a Network.CGI module, or is that
something different?
Peter
___
Haskell-Cafe mailing
Hello:
A couple of days ago I posted a question about the cgi library,
which was not answered. What are appropriate courses of action for me
in a case like this?
Thanks.
Mark
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mai
At 15:03 15/10/03 +1300, Tom Pledger wrote:
If you're willing to introduce *one* more variable in a let or where,
try:
joinVarBindings vb1 vb2
| vbNull vb1 = vb2
| vbNull vb2 = vb1
| otherwise = this
where
this = VarBinding
{ vbMap = he
At 00:42 15/10/03 -0400, Derek Elkins wrote:
> If I comment out the indefinitely long list case (test7) in the
> definition of 'test', the foldl version will pass all these test cases
> and foldr throws an error on test6. But if I include test7, using
> Hugs the foldr test case returns a C stack o
At 18:38 14/10/03 -0700, Brandon Michael Moore wrote:
On Mon, 13 Oct 2003, Graham Klyne wrote:
> Results in a fairly obvious type error: I'd need to have a way to say that
> vbMap is applied to the value under construction. Experience with Java
would
> suggest maybe something like this:
> [[
>
At 21:04 14/10/03 -0400, Scott Turner wrote:
You could deal with this deficiency in two ways. First, revise nextSame1 to
return something like (a, Bool) so that you can compare values without having
to determine whether the entire tail of the list is uniform.
I was thinking that returning a (Maybe
13 matches
Mail list logo