Hi,
8 == ERROR_NOT_ENOUGH_MEMORY, which sounds
reasonable (albeit cryptic) since Win32 has a default user
process size limit of 2Gb.
--sigbjorn
- Original Message -
From: Andreas Marth [EMAIL PROTECTED]
To: glasgow-haskell-bugs@haskell.org
Sent: Thursday, January 13, 2005 07:41
Subject:
Hello,
Does the user guide documentation for these reflect current ghc compiler?
Para. 7.2.2 says they can only be deconstructed using case expressions
but by accident I've found they seem to work fine in let bindings too
(with ghc version 6.2.2).
Not that I'm complaining (I always thought
I'm planning to implement a small OO language on top of GHC (think
JavaScript) and need to decide on how to implement the mutable object
graph that is required.
The two approaches I'm considering are:
- something on top of Data.Graph
- using MVars as the object references.
The MVar approach is
Hi,
For those of us (I know at least one more) who like to write
LaTeX-based literate programs, I've recently been hacking a bit on
Andrew Cooke's haskell.sty file. If anybody else is interested in a
revised version, or has modifications of their own, please drop me a
mail. (I can also make it
[Apologies if you get multiple copies of this call]
==
ICAPS 2005 Workshop Program Call for workshop papers
--
New deadline for papers: February 21st. *
For
Ketil Malde [EMAIL PROTECTED] writes:
Andrew Cooke's haskell.sty file.
By popular demand (two interested, and nobody asking me not to :-) I
put my hacked version of haskell.sty out here:
http://www.ii.uib.no/~ketil/tex/
Also available as a darcs repository. I'm a terrible LaTeX hacker, so
Special Issue on
Foundations of Aspect-Oriented Programming
Science of Computer Programming
Last Call For Contributions
[
Please note the new deadline: 1 March 2005.
This deadline caters for synchronisation with the FOAL 2005 workshop.
See text below.
]
Guest Editors: Pascal Fradet and
Marcin 'Qrczak' Kowalczyk wrote:
Ben Rudiak-Gould [EMAIL PROTECTED] writes:
is there *any* way to get, without an exploitable race condition,
two filehandles to the same file which don't share a file pointer?
In unix the traditional way to do this is to use a directory. Each
Keean Schupke [EMAIL PROTECTED] writes:
At the end of the day IO is serial by nature (to one device anyway),
so the way to do this into one file is to have one thread that reads
and writes, and to 'send' read and write requests over channels from
the threads that need the work done
Would the
No I meant Channels (from Data.Concurrent)... you can use a structure like:
data Command = Read FileAddr (MVar MyData) | Write FileAddr MyData
So to write you just do:
writeChan iochan (Write address data) -- returns immediately
-- write happens asynchronously later
and to read:
data -
On Wed, 12 Jan 2005 12:03:44 -0800, John Velman [EMAIL PROTECTED] wrote:
Your code works fine on Linux. :-)
Oh, by the way, I compiled my wxHaskell with GHC 6.2.2
On Wed, Jan 12, 2005 at 04:16:33PM +0100, Dmitri Pissarenko wrote:
I've downloaded wxHaskell, ran the
Ketil Malde wrote:
Keean Schupke [EMAIL PROTECTED] writes:
No I meant Channels (from Data.Concurrent)... you can use a structure like:
Yes, I realize that (although I haven't yet used Data.Concurrent). It
seemed to me, though, that streams are related to channels, and that
it may be
Hi folks
The main thing I like about type signatures is that they help the
computer write the boring bits of my programs for me.
I've said it before and I'll say it again, no doubt: when we talk
about 'type inference', we should distinguish two aspects:
(1) the machine doesn't know your plan and
Ketil Malde [EMAIL PROTECTED] writes:
It seemed to me, though, that streams are related to channels,
I'm not sure what exactly do you mean by streams (because they are
only being designed), but differences are:
- A stream is either an input stream or an output stream, while a
single channel
Conor McBride wrote:
Types can be seen as a highly expressive and compact language of
design statements for both humans and machines to read: this design
statement determines the space of essential choices for the programmer,
and programming can, if we choose, consist of navigating that space.
Marcin 'Qrczak' Kowalczyk [EMAIL PROTECTED] writes:
Ketil Malde [EMAIL PROTECTED] writes:
It seemed to me, though, that streams are related to channels,
I'm not sure what exactly do you mean by streams (because they are
only being designed), but differences are:
Sorry for being unclear, I
Hello!
Thanks for your answer!
I solved the problem by using GHC 6.2.1 instead of GHC 6.2.2 (under Windows).
Best regards
Dmitri Pissarenko
--
Dmitri Pissarenko
Software Engineer
http://dapissarenko.com
___
Haskell-Cafe mailing list
Is someone aware of how to make it work with 6.2.2?
Thanks,
Michael
On Thu, 13 Jan 2005 18:09:20 +0100, Dmitri Pissarenko
[EMAIL PROTECTED] wrote:
Hello!
Thanks for your answer!
I solved the problem by using GHC 6.2.1 instead of GHC 6.2.2 (under Windows).
Best regards
Dmitri
This is probably an easy question, but I'm having a problem with
parsec in the IO monad. The essential parts of my program looks like
this...
import Text.ParserCombinators.Parsec
main = do input - getContents
putStr $ show $ parse_text shape_parse input
--(cam, sh) -
Mike Gunter wrote:
I'd guess that
let (cam, sh) = parse_text shape_parse input
is what you want? (Completely untested ...)
Yep. That did it.
Thanks,
Greg Buchholz
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
Instance with a context doesn't seem to work as I expect.
Here's the story:
I define an data type, Relation, and I want to make it an instance of
Show, partly so I can debug and tinker with things interactively and have
ghci print something.
Here is my first try:
import Data.Set
type EN
You can remove that error message by including following in package.conf
file.
Package
{name = readline,
auto = True,
import_dirs = [$libdir/imports],
source_dirs = [],
library_dirs = [$libdir],
hs_libraries = [HSreadline],
extra_libraries = [readline, advapi32],
You can remove that error message by including following in package.conf
file.
Package
{name = readline,
auto = True,
import_dirs = [$libdir/imports],
source_dirs = [],
library_dirs = [$libdir],
hs_libraries = [HSreadline],
extra_libraries = [readline, advapi32],
Thanks, Andreas. Your example still left me without context in the show
statement itself, but your message set me to look in the right place.
Now I have
--- Code
data Relation a i b = Rel {name::RN, arity::Int, members::(Set [EN])}
instance (Show a, Show i, Show b) = Show (Relation a i b)
24 matches
Mail list logo