Hello,
Recently, I came accross this
expression:
[ x + y | x - xs | y - ys ]
As far as I can see (Haskell Report),
this is not allowed by the haskell 98
standard. So I assume it to be an ex-
tension. Where can I find information
about this?
Thanks,
Rijk
* Rijk J. C. van Haaften [EMAIL PROTECTED] [2003-01-30 11:41 +0100]:
Recently, I came accross this expression:
[ x + y | x - xs | y - ys ]
^
Put a comma ',' here.
Regards,
Olli
--
obraun@ -+-[ informatik.unibw-muenchen.de ]-+-[ IIS _ INF _
* Rijk J. C. van Haaften [EMAIL PROTECTED] [2003-01-30 11:41 +0100]:
Recently, I came accross this expression:
[ x + y | x - xs | y - ys ]
^
Put a comma ',' here.
That's something totally different. Two examples:
1. Comma
[ x + y | x - [1,2], y -
On Thu, Jan 30, 2003 at 11:41:49AM +0100, Rijk J. C. van Haaften wrote:
Recently, I came accross this
expression:
[ x + y | x - xs | y - ys ]
As far as I can see (Haskell Report),
this is not allowed by the haskell 98
standard. So I assume it to be an ex-
tension. Where can I find
* Rijk J. C. van Haaften [EMAIL PROTECTED] [2003-01-30 12:06 +0100]:
* Rijk J. C. van Haaften [EMAIL PROTECTED] [2003-01-30 11:41 +0100]:
Recently, I came accross this expression:
[ x + y | x - xs | y - ys ]
^
Put a comma ',' here.
That's
Hello,
Recently, I came accross this
expression:
[ x + y | x - xs | y - ys ]
As far as I can see (Haskell Report),
this is not allowed by the haskell 98
standard. So I assume it to be an ex-
tension. Where can I find information
about this?
This is a parallel list comprehension, a
I'm trying to make a backtracking state monad using Ralf Hinze's
backtracking monad transformer. My problem is that it won't backtrack
very far.
Suppose I try ( a b ) `mplus` c.
If b fails, it should try c, but it doesn't rewind past a.
My sample code is below.
GHCI c [0,1] match_1
G'day all.
On Thu, Jan 30, 2003 at 01:55:50PM -, Guest, Simon wrote:
I'm trying to make a backtracking state monad using Ralf Hinze's
backtracking monad transformer. My problem is that it won't backtrack
very far.
Suppose I try ( a b ) `mplus` c.
If b fails, it should try c, but
On 2003-01-30 at 11:08GMT Ross Paterson wrote:
On Thu, Jan 30, 2003 at 11:41:49AM +0100, Rijk J. C. van Haaften wrote:
Recently, I came accross this
expression:
[ x + y | x - xs | y - ys ]
As far as I can see (Haskell Report),
this is not allowed by the haskell 98
standard. So I
Why does GHC place this constraint? I would expect forall to be
predicative, and a type variable to range over all types, but obviously
I'm missing something.
Jon Cast
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
Hello,
Is it even possible to make a global variable in Haskell?
If yes, how?
Thanks.
--
Zhbanov Pavel
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Pavel G. Zhbanov wrote:
Is it even possible to make a global variable in Haskell?
If yes, how?
The usual fudge is:
import IORef
import IOExts
globalVar :: IORef Int
globalVar = unsafePerformIO $ newIORef 0
However, beware of creating more than one
12 matches
Mail list logo