Re: Encountered absent arg

2010-04-11 Thread Johannes Waldmann
Louis Wasserman wasserman.louis at gmail.com writes: I compiled my code with -fdicts-strict. What is this actually supposed to do? It seems the documentation is missing: http://www.haskell.org/ghc/docs/latest/html/users_guide/options-optimise.html#options-f Anyway my guess is that if you want

Re: Threads and memory management

2009-04-28 Thread Johannes Waldmann
Thanks for your comments. Check whether it is GC-bound by using +RTS -sstderr. Well yes, it does a lot of GC (there's no way for the compiler to optimize away the list of primes) because that was the point of the example: to confirm (or disprove) that GC hurts parallelism (at the moment).

Threads and memory management

2009-04-24 Thread Johannes Waldmann
Dear all, I was wondering what is the current status of the ghc RTS with respect to threading. Is it true that the allocator and deallocator (garbage collector) are still single-threaded? I made this example: import Control.Concurrent import Control.Concurrent.QSemN primes1 = sieve [ 2 .. ]

Re: Grammar for (Glasgow) Haskell

2008-11-26 Thread Johannes Waldmann
[EMAIL PROTECTED]:~/software/haskell/ghc-6.10.1 find . -name *.y* ./compiler/main/ParsePkgConf.y.source ./compiler/parser/ParserCore.y.source ./compiler/parser/Parser.y.pp.source ./compiler/parser/HaddockParse.y.source ... ___ Glasgow-haskell-users

Re: Making ghc utilize multiple cpus ?

2008-11-09 Thread Johannes Waldmann
http://thread.gmane.org/gmane.comp.lang.haskell.glasgow.user/12926 ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

file descriptors

2008-10-30 Thread Johannes Waldmann
Dear all, are there any known issues with file handles/descriptors in ghc-compiled executables? My program has a lot of calls to System.Process.runInteractiveProcess and I'm running into unpredictable behaviour (sometimes the program just silently dies, sometimes it gets stuck) The handles I

Control.Exception

2008-10-07 Thread Johannes Waldmann
with 6.10, the following does not typecheck: foo `Control.Exception.catch` \ _ - return bar Ambiguous type variable `e' in the constraint: `Control.Exception.Exception e' It is probably bad programming style anyway but what is the workaround? I found some references (in list emails) to

ghc-6.10.0.20081005 binary refers to (non existent?) libedit.so.0

2008-10-07 Thread Johannes Waldmann
Dear all, I tried to install the binary snapshot on Debian (etch) x86_64 and got: /usr/local/lib/ghc-6.10.0.20081005/ghc: error while loading shared libraries: libedit.so.0: cannot open shared object file: No such file or directory I do have libedit (I think): lrwxrwxrwx 1 root root 14

Re: Control.Exception

2008-10-07 Thread Johannes Waldmann
catch \(e :: SomeException) - ... So, this changes the API (from 6.8 to 6.10)? I see there is Control.OldException (providing the old catch) but that still does not help me if I want my code compile with both 6.8 and 6.10. Is there some version of catch that works both ways? best regards,

System.Process.runInteractiveCommand, exit_group ()

2008-10-06 Thread Johannes Waldmann
Dear all, I have a Haskell program (compiled with -threaded) that calls an external executable via System.Process.runInteractiveCommand (and then I do waitForProcess). The external program finishes with exit_group () (I don't have source, but I see it from strace). Then, my Haskell program dies

Re: System.Process.runInteractiveCommand, exit_group ()

2008-10-06 Thread Johannes Waldmann
Solved - exit_group() wasn't the problem. My wrapper program silently died from SIGPIPE. Best regards, J.W. signature.asc Description: OpenPGP digital signature ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

Re: Weekly IRC meeting?

2008-07-30 Thread Johannes Waldmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 One idea we have is to talk about the GHC API. I am generally interested in this, but cannot contribute much at the moment. Best regards, J.W. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE -

ghci and source files

2008-07-29 Thread Johannes Waldmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear all, how does ghci (actually, the ghc API functions) access the file system? (It needs to check whether source files had been updated.) Is it possible to insert an abstraction layer there? E.g. imagine the sources are not on the file system, but

Re: ghci and source files

2008-07-29 Thread Johannes Waldmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 data Target = Target TargetId (Maybe (StringBuffer,ClockTime)) looks great. How is this intended to be used, i.e. what should happen if there is an edit/save event in the IDE? Then the IDE constructs a new StringBuffer from the buffer contents and

ghc-6.8.1 on solaris-sparc

2008-07-03 Thread Johannes Waldmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello. I am assuming that 6.8.1 is the latest binary release for solaris-sparc? When I try to call ghc, it says ld.so.1: ghc-6.8.1: fatal: relocation error: file /usr/local/lib/libncurses.so.5: symbol main: referenced symbol not found my

Re: Haddock, .lhs, and GHC

2008-06-15 Thread Johannes Waldmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does this mean that literate source files should be discouraged? They seem to be fairly common, especially in conjunction with Cabal (i.e., Setup.lhs). I think the reason for having Setup.lhs instead of Setup.hs is that you can put

Re: Missing Data.Map library? GHC 6.8.2 under OS X

2008-06-09 Thread Johannes Waldmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 what is the exact source file, what is the compile/link command that causes the error? if you use ghc --make Foo then all dependencies should be handled correctly. what is the output of ghc-pkg list containers? -BEGIN PGP SIGNATURE-

Re: Having trouble with parallel Haskell

2008-06-05 Thread Johannes Waldmann
easily and fully exploit multi-core hardware, then they sure would take that course on Declarative Programming... Best regards, Johannes Waldmann. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

GHC API (parsing)

2008-04-14 Thread Johannes Waldmann
Dear all, how can I convince the Language.Haskell.Parser to accept GHC Haskell (i.e., -fglasgow-exts, e.g. for existential types) or: how can I convince the GHC API loader to parse a module from a string (not from a file)? Any hints appreciated, Johannes.

Re: GHC API (parsing)

2008-04-14 Thread Johannes Waldmann
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskell-src-exts-0.3.3 interesting, I'll look into that. * it's not exactly a drop-in replacement for Language.Haskell.* ? (HsNewTypeDecl is different?) * for the others, number of constructor arguments does not match, e.g.

Re: Haskell-src-ext

2008-04-14 Thread Johannes Waldmann
[...] to add some import statements? what is your plan? Leif wrote down some ideas (for eclipsefp2) here: http://leiffrenzel.de/eclipse/wiki/doku.php?id=editororganizeimports best regards, J.W. ___ Glasgow-haskell-users mailing list

Re: GHC API (parsing)

2008-04-14 Thread Johannes Waldmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Introspection? So you can get haddock comments from ghci? see also http://hackage.haskell.org/trac/ghc/ticket/2168 best regards, j.w. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with Mozilla -

Re: Wanted: migration guide from ghc-6.6 to ghc-6.8

2008-04-07 Thread Johannes Waldmann
list of things to watch out for when converting Haskell sources written for ghc-6.6 for compilation with ghc-6.8. Thanks for the pointers. Luckily, only a few changes were needed, http://leiffrenzel.de/eclipse/wiki/doku.php?id=hare_with_gh-6.8 (sic). and most of them related to GHC API. I'm

Wanted: migration guide from ghc-6.6 to ghc-6.8

2008-04-04 Thread Johannes Waldmann
... Is there an easy way to get a library API diff (automatically, say, from full 6.6 and 6.8 installations)? Best regards, Johannes Waldmann. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH9hn73ZnXZuOVyMIRAk1nAKDEteU

ghci feature request: partially read modules

2008-02-16 Thread Johannes Waldmann
, then please educate me; or perhaps there's an easy way to implement partial reading and typechecking. (It'd be enough to have this for the current module, of course.) Thanks - Johannes Waldmann. ___ Glasgow-haskell-users mailing list Glasgow-haskell-users

Re: ghci feature request: partially read modules

2008-02-16 Thread Johannes Waldmann
Sure. Syntax errors are usually easy to spot and fix (for the programmer who uses some reasonable code layout); the motivation for my proposal was type errors. I think it would be perfectly acceptable if ghci rejects modules with parse errors (as it does now) but handles modules with type errors

Re: Network.CGI changes

2008-01-21 Thread Johannes Waldmann
If you need the old wrapper function, then use something like this: wrapper :: ([(String,String)] - IO Html) - IO () wrapper f = runCGI $ do e - getInputs a - lift $ f $ e output $ renderHtml a best regards, Johannes Waldmann. ___ Glasgow

Re: Module system, was Re: GHC source code improvement ideas

2008-01-05 Thread Johannes Waldmann
regards, Johannes Waldmann, Leipzig. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHgAR23ZnXZuOVyMIRAvYsAJ9DRhuJ3Nxyn+L+elwij5YmqWw89wCgrtLX tBgzlnLUjkNWqPkZgCykLuk= =I3TR -END PGP SIGNATURE

Re: type equality symbol

2007-12-07 Thread Johannes Waldmann
this was introduced to avoid writing out some declarations. This is a bad design goal, especially so for a declarative language. Reminds me of ancient Fortran using the first letter of an identifier for implicit typing (I .. N for integer, others for real). Best regards, -- -- Johannes Waldmann

Re: suggestion: add a .ehs file type

2007-11-21 Thread Johannes Waldmann
Alex Jacobson wrote: [...][ 50 language pragmas with arbitrary spellings [...] Indeed. For instance, I always get an error for -XMultiParameterTypeClasses . (Without looking at the documentation: do you see why?) PS: indeed I just checked the docs and found -XDisambiguateRecordFields Was

Re: suggestion: add a .ehs file type

2007-11-21 Thread Johannes Waldmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alex Jacobson wrote: So what is DisambiguateRecordFields? http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#disambiguate-fields -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with

ghc-6.8.1, +RTS -N2

2007-11-13 Thread Johannes Waldmann
, both running openSuse-10.3 I cannot tell whether this is an regression from 6.6 (I cannot easily backport my code). Any hints appreciated, Johannes Waldmann. ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org

ghc --make-parallel ?

2007-10-18 Thread Johannes Waldmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Can ghc execute compilations in parallel? (With GNU make, I'd say make -j 2 but how to achieve this with ghc --make ?) Thanks - J. Waldmann. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with Mozilla -

how to build API docs from snapshot?

2007-10-09 Thread Johannes Waldmann
How can I build the library API docs from a (source) snapshot, e.g. ghc-6.8.0.20070921-src-extralibs.tar.bz2 ? Thanks, -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann/ --- ___ Glasgow-haskell

Re: problem compiling an older Haskell program with GHC 6.6.1

2007-07-06 Thread Johannes Waldmann
Could not find module `Data.FiniteMap': is this a backwards-compatibility issue between GHC 6.6.1 and older versions of GHC? the module has just vanished from libraries. is there a simple workaround? ugly, but workable:

Type wildcards, was: Re: [Haskell] GHC Error question

2006-12-07 Thread Johannes Waldmann
constructors should not be exported :-) Best regards, -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann/ --- ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http

Re: Type wildcards, was: Re: [Haskell] GHC Error question

2006-12-07 Thread Johannes Waldmann
://141.57.11.163/cgi-bin/cvsweb/lib/Autolib/NFA/Data.hs.drift?rev=1.16 but this is of course only a hack, and it duplicates information since you have to repeat the context in the default instance. At least this happens only in one place, so it is useful. -- -- Johannes Waldmann -- Tel/Fax (0341) 3076

moving to ghc-6.6

2006-10-23 Thread Johannes Waldmann
refers to Text.XHtml, not Text.Html, so I had to change these imports as well. source encoding: it is annoying that ghc only accepts UTF-8 now. sure I can use iconv but I rather not touch my sources at all. with javac, I can just say -encoding latin1. Best regards, -- -- Johannes Waldmann -- Tel

how to get more detail for: loop

2006-06-07 Thread Johannes Waldmann FbIMN
How can I get more information if my ghc-compiled program halts with loop What kinds of cyclic dependencies does the runtime system actually recognize? Thanks -- Johannes Waldmann ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

Re: recursive import

2006-06-06 Thread Johannes Waldmann
As for recursive module imports, could you perhaps show an example where this occurs. I found that in my code, I can re-arrange things so as to remove the cyclic dependency. Best regards, -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann

Re: ghc and gcc-4

2006-01-24 Thread Johannes Waldmann
, I get the same behaviour with ghc-6.4.2.20060121-i386-unknown-linux -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann/ --- ___ Glasgow-haskell-users mailing list Glasgow-haskell-users

Re: ghc and gcc-4

2006-01-23 Thread Johannes Waldmann
. Have you tried 6.4.1? Or a STABLE snapshot? no, will do. -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann/ --- ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http

ghc and gcc-4

2006-01-20 Thread Johannes Waldmann
are there known problems with ghc-6.4.* and gcc-4.*? It seems that -O2 does not work (on i386), as gcc says something like Prologue junk. (Suse linux 10.0 comes with gcc-4.?`as default compiler). -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de

Re: Lexically scoped type variables

2006-01-17 Thread Johannes Waldmann
On the syntax of type signatures: I'd like to be able to write e. g. do x :: Int - randomRIO ( 0, 10 ) print x Currently I have to put ( x :: Int ) in parentheses. Is this necessary? -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann

Re: instance inference

2005-12-19 Thread Johannes Waldmann
regards, -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann/ --- ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Proposal: Improved error message of Error in array index

2005-11-07 Thread Johannes Waldmann
. Best regards, -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann/ --- ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow

Re: setup clean in 6.4 Cabal

2005-06-09 Thread Johannes Waldmann
Does this mean the command runghc Setup.hs clean ? I run such, and it cleans dist/*. All right. Now, what is a similar easy command for un-installing runhaskell Setup.hs unregister ?? -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de

deprecate a constructor?

2005-04-14 Thread Johannes Waldmann
is it possible to {-# DEPRECATE #-} a single constructor (of a data declaration that is, as a whole, not deprecated)? -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann/ --- ___ Glasgow-haskell

ghc-6.4 on sparc/solaris

2005-03-29 Thread Johannes Waldmann
system call) this being a repeatable error. (I checked that it can compile simple Hello World programs - no problems.) (ah yes, I am using gcc-2.95.2, and uname -a = SunOS aaron 5.8 Generic_108528-15 sun4u sparc ) -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk

moving from ghc-6.2 to 6.4

2005-03-28 Thread Johannes Waldmann
to the GHC team. -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- http://www.imn.htwk-leipzig.de/~waldmann/ --- ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell

debian package of 6.2.1 has no ghc-pkg-$VERSION

2004-07-06 Thread Johannes Waldmann
I'm not sure whose fault it is but when building HaXml-1.12, the command ghc-pkg-$VERSION is called which is not provided by the 6.2.1 debian package (from syntaxpolice.org). (of course a symlink from ghc-pkg solves this.) -- -- Johannes Waldmann, Tel/Fax: (0341) 3076 6479 / 6480 -- -- http

ghc-6.2/opengl

2004-01-20 Thread Johannes Waldmann
... Undefined first referenced symbol in file glXGetProcAddressARB /usr/local/share/ghc/lib/ghc-6.2/libHSOpenGL_cbits.a(HsOpenGL.o) any ideas? -- -- Johannes Waldmann, Tel/Fax: (0341) 3076 6479 / 6480 -- -- http://www.imn.htwk-leipzig.de/~waldmann

Re: Data.Tree.Tree Show instance

2003-08-14 Thread Johannes Waldmann
program texts, but you'll find that they are more readable, and extendable. (Compare adding another component to a tuple, and to a record). this also gives you the opportunity to define class instances in any way you want. best regards, -- -- Johannes Waldmann http://www.informatik.uni

Text.PrettyPrint.HughesPJ bug (return of the dead?)

2003-07-20 Thread Johannes Waldmann
be replicate n ' ' or something that behaves nicely for negative arguments. (that shouldn't of course be there in the first place but this seems harder to fix. somehow related to nesting, etc.) Best regards, -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL

-fdicts-strict ?

2003-07-11 Thread Johannes Waldmann
what exactly happens when ghc applies `-fdicts-strict' ? and what could then be the reason for Fail: Oops! Entered absent arg w_s1Bjs {GHCziBase.Ord {- tc 2c -} c {- tv a1AVd -}} when executing the compiled program? best regards, -- -- Johannes Waldmann http://www.informatik.uni

how and where to {-# specialize #-} ?

2003-06-19 Thread Johannes Waldmann
compilation time for this. Even a LOT of time. ) Thanks, -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/209 -- ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED

Re: Hypergraph module (Re: instance Ord FiniteMap)

2002-05-30 Thread Johannes Waldmann
. Best regards, -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo

Re: instance Ord FiniteMap

2002-05-29 Thread Johannes Waldmann
only be evaluated to a small extent. -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org

Re: -fallow-overlapping-instances Request

2002-05-17 Thread Johannes Waldmann
://www.grappa.univ-lille3.fr/tata/ Well, at least my impression is that these topics *are* closely related, and *both* should certainly benefit from a closer investigation of their interrelations. (this is what I'll be attempting in one part of my thesis.) best regards, -- -- Johannes Waldmann

sparc/linux, again

2002-04-30 Thread Johannes Waldmann
in __libc_start_main () from /lib/libc.so.6 Any hints? -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org

how to specify gcc location on ghc command line?

2002-03-13 Thread Johannes Waldmann
ghc-5.02.2 seems to need gcc-2.95.3, but here we have gcc-3.0.* per default. There IS a gcc-2.95.3 tree around, but how do I tell ghc about it? -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252

Re: Passing values taking implicit parameters

2002-01-31 Thread Johannes Waldmann
). Note that some (most?) of the above is available for type *classes*, instead of types. Best regards, -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow

Re: Passing values taking implicit parameters / smart constructors

2002-01-31 Thread Johannes Waldmann
- being *not* an Haskell implementor, of course :-) Best regards, -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED

Re: interpreter features

2001-10-29 Thread Johannes Waldmann
-specific language). Seems like a reasonable compromise. Best regards, -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow-haskell-users mailing list [EMAIL

problems with ghc-5.02 Socket module (SunOS)

2001-10-13 Thread Johannes Waldmann
: getSocketOption Reason: Invalid argument even though there IS a listener on the socket (other programs can connect to it). I have ghc-5.02 (binary package for SunOS) Any hints appreciated. how to find out what is invalid? -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe

catchAllIO

2001-05-02 Thread Johannes Waldmann
it help with respect to this problem?) Regards, -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http

Exceptions and sockets

2001-05-02 Thread Johannes Waldmann
throwing an exception. (I checked that the RTS thinks `hIsWritable h' even if `h' does no longer exist in reality.) How could I work around this? SocketPrim? -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252

Re: how to implement timeouts for IO operations?

2001-04-19 Thread Johannes Waldmann
is it? -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: how to implement timeouts for IO operations?

2001-04-19 Thread Johannes Waldmann
OK, I was being a bit stupid this morning. Now I see that `parIO' is not in the ghc libs, but programmed explicitely in the `Tackling the awkward sqaud' paper. http://research.microsoft.com/~simonpj/papers/marktoberdorf.htm -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe

how to implement timeouts for IO operations?

2001-04-18 Thread Johannes Waldmann
timer = do threadDelay d throw $ AssertionFailed "timer expired" t - forkIO timer x - action killThread t return x it seems to work, but how do I turn off the "Fail: thread killed" messages? -- -- Johannes Waldmann http://www.informatik.uni

Re: how to implement timeouts for IO operations?

2001-04-18 Thread Johannes Waldmann
one is running, the other one is stopped - as used in tournament Chess.) -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow-haskell-users mailing list [EMAIL

process file table full?

2001-04-03 Thread Johannes Waldmann
somehow thought they were garbage collecteted, but apparently the weren't. -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow-haskell-users mailing list [EMAIL

process file table full?

2001-04-02 Thread Johannes Waldmann
Dear all, I was running a ghc compiled executable, (containing -syslib net -syslib concurrent) and got this after a while Fail: resource exhausted Action: openFile Reason: process file table full connect-985988146.log what could be the reasons? something related to sockets? -- -- Johannes

wanted: examples of Socket.hs usage

2001-03-23 Thread Johannes Waldmann
Dear all, I am looking for some code that uses ghc's Socket module. -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 -- ___ Glasgow-haskell-users mailing list [EMAIL

binary IO

2000-02-11 Thread Johannes Waldmann
) ftp://ftp.nuri.net/Go/programs/protocol.Z any hints appreciated. PosixIO maybe? -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/209 --

Re: porting .hi files

1998-01-23 Thread Johannes Waldmann
nted to avoid it (because hugs wouldn't handle it), i re-thought the placement of identifiers and the programm looked generally better afterwards. are there typical cases where cyclic module dependencies are the "natural" solution? best regards, -- Johannes Waldmann Institut fur Inform