FreeBSD [Re: 6.4.2 under solaris]

2006-04-28 Thread Volker Stolz
.4.2 CALL kse_release(0xbfbfbd80) 67244 ghc-6.4.2 RET kse_release -1 errno 22 Invalid argument (KSEs are 'kernel scheduling entities') Unfortunately, I didn't have any coffee yet, so I killed it instead of trying to get a core dump. After restarting the build, it works w/o pr

Re: Threaded runtime error

2006-03-22 Thread Volker Stolz
* Volker Stolz <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] [20:17:08]> ./timeout 10 /usr/bin/true > FFatal error '_pq_insert_tail: Already in priority queue' at line 200 in file > /usr/src/lib/libpthread/thread/thr_priority_queue.c (errno = 0) A workaround seems to u

Threaded runtime error

2006-03-21 Thread Volker Stolz
With -HEAD from darcs the new threaded runtime seems to trigger an assertion in FreeBSD's libpthread. Maybe this is some sign of an error in the RTS? I can only find references to this happending also in MySQL, but I haven't found any explanation yet. This is 'timeout' from the testsuite: [EMAIL

Re: FW: ghc, linux

2005-03-14 Thread Volker Stolz
In gmane.comp.lang.haskell.glasgow.bugs, you wrote: > ghc works for small programs, ie, if Main.hs is small then > ghc --make Main.hs will give me a.out > But if Main.hs is big, it will give me a message, "Killed" , after a > long time running. > > PIII, 64M memory > 420M free space on hard disk.

Re: Preprocessors

2004-10-20 Thread Volker Stolz
prioriate hint in the standard, though. If I'm reading this correctly, your incorrectly terminated C-string literal confuses cpp, so it won't do any macro expansion in the offending part (past the single quote). -- Volker Stolz * http://www-i2.informa

Re: Compiling from CVS on Sparc/Solaris

2004-10-20 Thread Volker Stolz
In gmane.comp.lang.haskell.glasgow.bugs, you wrote: > Fair enough... The problem I'm having (which my proposed fix did in fact > not solve) is that my readline libraries are in a non-standard location. > Currently the final linking of stage1/ghc-6.2.2 (in this case) dies > complaining about not fin

Re: [ ghc-Bugs-954378 ] getFileStatus does not include the file name in IO-Error

2004-05-15 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: > Summary: getFileStatus does not include the file name in IO-Error Hm, it looks like none of the functions in there return a hint as to which argument caused the error. All of them should probably include filenames etc into exceptions. Volker -- Vol

Re: compiler bug? sunos 5.8, ghci-6.0.1 -package unix

2003-09-15 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: > and the some for the precompiled version, > i getting the following error. > Loading package unix ... linking ... /home/xxx/local/lib/HSunix.o: unknown symbol > `sendfile' Hrmph. Sorry for the hassle. Please try adding "sendfile" to the list of extra

Re: problem compiling OpenGL/.../Extensions.hs with GHC version 6.0

2003-06-03 Thread Volker Stolz
Could the parties involved with the quoting issue please test the following patch? It doesn't use an additional shell for starting sub-tasks and does no additional quoting so that quoting remains unaffected, i.e. testing with OpenGL shows that the double quotes are indeed passed through. Sven, do y

Re: HEAD: the `impossible' happened, MacOS X

2003-03-20 Thread Volker Stolz
take a look. That's from the 'devl' template in build.mk. You're right, the problem goes away when using -O! -- Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

HEAD: the `impossible' happened, MacOS X

2003-03-20 Thread Volker Stolz
HC version 5.05): ASSERT failed! file stgSyn/CoreToStg.lhs line 188 randomIvalDouble1 {- v s2Im -} -- Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/m

(Deriving) instances in .hi-boot not possible

2003-03-11 Thread Volker Stolz
It looks like it's not possible to declare instances in a .hi-boot file. If nobody proves me wrong, I'd like to add a comment about that to the user's guide's hi-boot section... Thread on ghc-users: http://www.mail-archive.com/[EMAIL PROTECTED]/msg04391.html -- Volker S

Re: [ ghc-Bugs-643878 ] sortBy not stable

2002-11-26 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: > The library report requires that sortBy be stable. In > 5.04.1 it isn't: It looks like the change to mergesort broke this property: #ifdef USE_REPORT_PRELUDE sort = sortBy compare sortBy cmp = foldr (insertBy cmp) [] #else sortBy cmp l = mergesort cmp

Re: [ ghc-Bugs-643878 ] sortBy not stable

2002-11-26 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: > The library report requires that sortBy be stable. In > 5.04.1 it isn't: [Simon, I must have missed that ghc-bugs is subscribers-only] There's an #ifdef'ed version in there which is stable, but the newer mergesort is not: #ifdef USE_REPORT_PRELUDE sort

Re: docs bug

2002-09-09 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: > >http://www.mirror.ac.uk/sites/www.haskell.org/ghc/docs/latest/html/base/Data.Bits.html > The description of each method of the Bits class seems to be attached > to the signature of a different method. The documentation generated by haddock 0.4 looks f

Re: killThread doc bug

2002-08-30 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: > I think it should be: > killThread tid = throwTo tid (AsyncException ThreadKilled) Yes, that's right. I just noticed that 'killThread' in fact isn't implemented by means of 'throwTo', but uses the 'killThread#' primop...wouldn't it be cleaner to fo

Re: select() failure

2002-08-29 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: > It sure would simplify my program if I could fork a process and not have > auxiliary threads persist in the child. Could this option be provided by > GHC RTS in a semantically sound way? On a "recent" GHC you can try 'forkProcess[Prim]': http://www.has

Re: sigCHLD signal handling (Was: Re: pipes? threadWaitRead?)

2002-07-15 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: > Am 10. Jul 2002 um 22:21 CEST schrieb Dean Herington: >> The first issue I confronted is that the get*ProcessStatus routines return >> an error rather than "nothing" if there is no candidate child process. > > Yes, `waitpid' might return with EINTR whic

Re: sigCHLD signal handling (Was: Re: pipes? threadWaitRead?)

2002-07-15 Thread Volker Stolz
Am 10. Jul 2002 um 22:21 CEST schrieb Dean Herington: > The first issue I confronted is that the get*ProcessStatus routines return > an error rather than "nothing" if there is no candidate child process. Yes, `waitpid' might return with EINTR which will cause an exception (I just checked, it did)

Re: sigCHLD signal handling (Was: Re: pipes? threadWaitRead?)

2002-07-09 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: > After much study I have a new theory. It appears that the pipe machinery > is working fine, but that sometimes my program fails to "reap" all of its > terminated child processes. I'm using a `sigCHLD` signal handler that > does `getAnyProcessStatus Tru

Re: panic in ghc5.02.3

2002-04-10 Thread Volker Stolz
stripping the offending bytes, e.g. just remove the last "blank" line in 'vi'. I won't judge if ghc-5.02.3 is wrong here, though. -- Wonderful \hbox (0.80312pt too nice) in paragraph at lines 16--18 Volker Stolz * [EMAIL PROTECTED] Please use PGP or S/MIME for correspo

Re: Cannot build 5.02.2 on Solaris 2.7

2002-04-05 Thread Volker Stolz
\hbox (0.80312pt too nice) in paragraph at lines 16--18 Volker Stolz * [EMAIL PROTECTED] Please use PGP or S/MIME for correspondence! ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: Bug in IO libraries when sending data through a pipe?

2002-03-18 Thread Volker Stolz
, there is a buffer's worth missing. > > Moral of this story: don't use lazy I/O. There's a warning in the documentation of executeFile to exactly the same end after all... -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow

Re: Bug in IO libraries when sending data through a pipe?

2002-03-15 Thread Volker Stolz
ouldn't influence the result, so I'd expect the same "missing" data as in your original case. -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: Bug in IO libraries when sending data through a pipe?

2002-03-15 Thread Volker Stolz
27;hSetBuffering stdin NoBuffering' before 'getContents' doesn't seem to be sufficient, either. Regards, Volker -- Wonderful \hbox (0.80312pt too nice) in paragraph at lines 16--18 Volker Stolz * [EMAIL PROTECTED] Please use PGP or S/MIME for correspondence!

AbsCStixGen.gencode panic

2001-11-16 Thread Volker Stolz
PtrToFunPtr (fromJust funptr)) withCString "hello" $ \ str -> res str 1 return () \end{code} -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: [5.02/5.02.1] hGetContents problem

2001-11-14 Thread Volker Stolz
early apply to this patch as well? -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: [5.02/5.02.1] hGetContents problem

2001-11-14 Thread Volker Stolz
uot;Io: \"Reading..:\"\n", 17)= 17 write(0, "\0\0\0\2ClientPut\nHopsToLive=0\nURI=K"..., 158) = -1 EBADF (Bad file descriptor) fcntl(2, F_GETFL) = 0x2 (flags O_RDWR) write(2, "\nFail: ", 7)

[5.02/5.02.1] hGetContents problem

2001-11-13 Thread Volker Stolz
*** connect(0, {sin_family=AF_INET, sin_port=htons(8481), sin_addr=inet_addr("127.0.0.1")}}, 16) = -1 EBADF (Bad file descriptor) fcntl(2, F_GETFL) = 0x2 (flags O_RDWR) write(2, "\nFail: ", 7) = 7 write(2, &q

Re: Changed behaviour when reading from FIFOs!

2001-10-30 Thread Volker Stolz
to detect. I'm using 'fork' (the real thing, not forkIO), in a Concurrent Haskell programm and I need a way to lock out multiple readers from the same file handle because of the sharing when forking. -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME _

Re: Changed behaviour when reading from FIFOs!

2001-10-29 Thread Volker Stolz
: just comment out the first two > lines of fifoReadLoop, and everything should be fine. This also fixes > the other problem you mentioned above ("varying numbers of last"). The blocking is essential since I need to be able to use MVars between the threadWaitRead & the hGe

Changed behaviour when reading from FIFOs!

2001-10-29 Thread Volker Stolz
n do putStrLn $ "Creating FIFO " ++ fifoname system $ "/usr/bin/mkfifo " ++ fifoname openFile fifoname ReadMode else error $ "Can´t create FIFO " ++ fifoname ) \end{code} -- Volker St

[5.02] Bug with existentially-quantified constructors

2001-10-18 Thread Volker Stolz
(print :: Int -> IO ())] call li "foo" call st 3 call (C f) arg = do f arg \end{code} -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: Bug with readFile and named pipes

2001-08-22 Thread Volker Stolz
the file for writing first. One could imagine that readFile tests the filetype and does The Right Thing(TM), but I`m not sure I want that, either. -- Neues aus Genua? http://germany.indymedia.org/ Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME

Fixed^2 (Re: Fixed! (Re: [5.01] Runtime error in SocketPrim?!))

2001-06-13 Thread Volker Stolz
return (SockAddrInet (PortNum port) addr) -- size of struct sockaddr by family #if !defined(cygwin32_TARGET_OS) && !defined(mingw32_TARGET_OS) -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-has

Re: Fixed! (Re: [5.01] Runtime error in SocketPrim?!)

2001-06-13 Thread Volker Stolz
x27;ll grab a copy of 5.00.2 to see what happens there, but this will take some time. -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listi

Re: Fixed! (Re: [5.01] Runtime error in SocketPrim?!)

2001-06-07 Thread Volker Stolz
ockAddr family $ \ptr sz -> do + withObject (fromIntegral sz) $ \int_star -> do throwErrnoIfMinus1Retry "getSocketName" $ c_getsockname s ptr int_star - sz <- peek int_star peekSockAddr ptr --------- --

Fixed! (Re: [5.01] Runtime error in SocketPrim?!)

2001-06-07 Thread Volker Stolz
do throwErrnoIfMinus1Retry "getSocketName" $ c_getsockname s ptr int_star - sz <- peek int_star peekSockAddr ptr -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL

Re: [5.01] Runtime error in SocketPrim?!

2001-06-07 Thread Volker Stolz
socketR = socket, > portR = (read (show myPort)) :: Port -- sigh > } > return record I'm still on it. -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

[5.01] Runtime error in SocketPrim?!

2001-06-07 Thread Volker Stolz
Prim.ReuseAddr 1 >i <- case iface of > Nothing -> return SocketPrim.iNADDR_ANY > Just s -> do SocketPrim.inet_addr s >SocketPrim.bindSocket sock (SocketPrim.SockAddrInet port i) >SocketPrim.listen sock SocketPrim.maxListenQueu

finalizers broken (4.08.2 & 5.00)

2001-05-25 Thread Volker Stolz
g the addFinalizer statement will give the desired behaviour. This happens both in 4.08.2 & 5.00. -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

[ghc5] (internal?) Bug in Socket.listen

2001-04-30 Thread Volker Stolz
y have any thoughts about what's happening here? -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: [Fwd: Bug#94739: ./.ghci -- isn't it dangerous?]

2001-04-30 Thread Volker Stolz
dle. Alternatively we also can check ownership of >the directory. And the ownership of .., and ../.. and ... Hm. Maybe the best way would be to steal some C-code from things like ssh and paste it. Michael keeps on mumbling something about a libflock, whatever. -- Abstrakte Syntaxträume. Volker S

Patch for ghci/missing hCloses

2001-04-30 Thread Volker Stolz
The following patch contains two gratuitious hClose statements which are missing (indepentdant from the previous .ghci-patch). -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME --- InteractiveUI.orig Mon Apr 30 09:41:28 2001 +++ InteractiveUI.hsMon Apr 30 13:38:34

Patch [Re: [Fwd: Bug#94739: ./.ghci -- isn't it dangerous?]]

2001-04-30 Thread Volker Stolz
I attached a fix which will NOT source a suspicious file and print out a warning. Could anyone with Wintendo please confirm that the Posix-stuff doesn't break anything for them? -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME --- ghci/InteractiveUI.orig Mo

Re: RTLD_GLOBAL not available on FreeBSD 3.x

2001-04-24 Thread Volker Stolz
_ >Glasgow-haskell-bugs mailing list >[EMAIL PROTECTED] >http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: RTLD_GLOBAL not available on FreeBSD 3.x

2001-04-24 Thread Volker Stolz
you're thinking about modifying lang/ghc to only support ghc5, I'm against this. Better create a new port and have something like ghc4 *and* ghc5. Two separate ports/packages are much better. Volker -- Abstrakte Syntaxträume. Volker Stolz *

Re: [ghc5] getDirectoryContents: trouble on Linux/NFS

2001-04-19 Thread Volker Stolz
t where several machines consistently show the faulty behaviour. -- \usepackage[latin1]{inputenc}! Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

[ghc5] getDirectoryContents: trouble on Linux/NFS

2001-04-17 Thread Volker Stolz
FreeBSD as soon as I get home. Feel free to ask for more details regarding machine setup/compilation. -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: [cvs] ghc/compiler/rename/ParseIFace won´t build

2001-01-29 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: >/home/stolz/Linux/haskell/ghc-4.08.1/bin/happy +RTS -K2m -H16m -RTS -g >rename/ParseIface.y Michael kindly pointed out that I should be using happy 1.9 anyway and not 1.10 from cvs. That solved the problem. -- \usepackage[latin1]{inputenc}!

[cvs] ghc/compiler/rename/ParseIFace won´t build

2001-01-28 Thread Volker Stolz
rename/ParseIface.o -osuf o rename/ParseIface.hs:8079: Data constructor not in scope: `HappyAbsSyn38' Happy is 1.10, everything from cvs (just "checkout", though, no special TAGS given). -- \usepackage[latin1]{inputenc}! Volker Stolz * [EMAIL PROTECTED]

fptools/configure thinks happy 1.10 < 1.9

2001-01-26 Thread Volker Stolz
0" ; echo $? 1 > perl vers.pl "4.08.1" "4.08"; echo $? 0 Got to take my pills now, Volker -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: Change sigTTOU/TTIN to IGNORE by default

2001-01-16 Thread Volker Stolz
everyone still has a firm grasp on reali^WPOSIX. -- \usepackage[latin1]{inputenc}! Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: Change sigTTOU/TTIN to IGNORE by default

2001-01-11 Thread Volker Stolz
Am 11. Jan 2001 um 11:54 MET schrieb Volker Stolz: > In fact I can produce a simple example, either. So just the facts: * That´s a "can´t" of course. *sigh* -- \usepackage[latin1]{inputenc}! Volker Stolz * [EMAIL PROTECTED] *

Re: Change sigTTOU/TTIN to IGNORE by default

2001-01-11 Thread Volker Stolz
ng putStrLn don´t cause any change. GHC was last built on Nov 15 18:25. I remember reporting a signal-handler related bug a couple of weeks ago which got fixed, but maybe I haven´t fixed my ghc and this is because of the same reason... -- \usepackage[latin1]{inputenc}! Volker Stolz * [EMAIL PROTE

Change sigTTOU/TTIN to IGNORE by default

2001-01-10 Thread Volker Stolz
plainly wrong. In the latter case SIGTTIN should be changed, too. -- \usepackage[latin1]{inputenc}! Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Type checker too lazy

2000-12-13 Thread Volker Stolz
Undefined type variable "a". Shouldn´t ghc reject the record-declaration altogether like Hugs? Why can´t I use the record like I´m doing in the first place? -- \usepackage[latin1]{inputenc}! Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME __

Re: little bug in ghc 4.06

2000-11-29 Thread Volker Stolz
Am 29. Nov 2000 um 13:37 MET schrieb Jean-Philippe Pouzol: > I use ghc on a SPARC Ultra-1 with SunOS 5.6 > > Today, a "panic" message was produced by ghc Doesn´t happen any more in 4.08.1. -- \usepackage[latin1]{inputenc}! Volker Stolz * [EMAIL PROTEC

Posix.runProcess creates funny path for process table

2000-10-17 Thread Volker Stolz
entry is a GHC-compiled program which has been started in bash using it's full path, i.e. Database/DBServer/DBServer. Volker -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.

Web docs show wrong type for catch in module Exception

2000-10-13 Thread Volker Stolz
, which doesn't exist in lang/Exception.lhs. The file version is $Id: Exception.lhs,v 1.11.2.1 2000/06/19 09:41:11. There's no hint at that you should be using IO.catch anyway,either ;). -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___

Re: Signal handling still buggy

2000-10-10 Thread Volker Stolz
:17]> fg ./sigTest test "test" > ^Z [2]+ Stopped ./sigTest tests@monster [10:23:21]> kill -USR1 %2 [2]+ Stopped ./sigTest tests@monster [10:23:23]> fg ./sigTest Fail: failed Action: hGetChar Reason: (erro

Re: Signal handling still buggy

2000-10-09 Thread Volker Stolz
On Mon, Oct 09, 2000 at 01:42:45PM +0200, Volker Stolz wrote: > It seems that in 4.08 & 4.08.1 signal handling still seems to be flawed: I forgot to mention that this only happens when using job-control: 1) start the program 2) use Ctrl-Z to suspend 3) kill -USR1 4) fg to resume,

Signal handling still buggy

2000-10-09 Thread Volker Stolz
the dictionary process which will happily do whatever I want it to. However, after repeatingly sending this signal, the I/O-loop in the other thread doing the getLine will choke with: Error: failed Action: hGetChar Reason: (error code: 0) Regards, Volker -- Volker Stolz * [EMAIL PROTECTED] * PGP

Re: How to use dynamic types?

2000-08-08 Thread Volker Stolz
*sigh*. I wonder why comments like this in Dynamic.lhs "Provided the implementor of other @Typeable@ instances takes care of making all the @TyCon@s CAFs (toplevel constants), this will work." ...don´t get written in bold, bright and friendly letters across the (HTML-)documentation... Of course

How to use dynamic types?

2000-08-08 Thread Volker Stolz
the example clearly calls mkAppTy with [TyCon] as 2nd parameter. Could someone provide me with a hint to a correct usage? Regards, Volker -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME

FIFO-woes solved

2000-06-20 Thread Volker Stolz
While thumbing through W.R.Stevens´ "Unix Network Programming" I found the following which should explain everything (except the platform-differences): "What happens is the ´read´ returns zero (end of file) to the daemon every time a client porcess terminates, if no other clients have the FIFO ope

Re: Module Time

2000-06-06 Thread Volker Stolz
On Mon, Jun 05, 2000 at 05:37:09PM -0400, Wojciech Moczydlowski, Jr wrote: > import Time The module Time doesn't work well outside of GMT. I think the last time we concluded that there's no way of fixing this. Add an offset by hand. -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME

Re: Blocking I/O & FIFOs

2000-05-12 Thread Volker Stolz
Although this means I have to follow-up on myself: I just realized that this isn't really that much trouble for me. The Hugs-stuff still might work and only the wrapper would have to be rewritten in something else then ghc-Haskell. -- Volker Stolz * [EMAIL PROTECTED] * PGP

Re: Blocking I/O & FIFOs

2000-05-12 Thread Volker Stolz
e nework-stuff and writes to FIFOs that Hugs *can* read, this wrapper could even be replaced by C or Java. I can´t think of any other way of doing this (except by some really evil things like file-spooling and busy-waiting/polling lock-files). Any suggestions of solving my problem will be appreciat

Re: Blocking I/O & FIFOs

2000-05-10 Thread Volker Stolz
On Wed, May 10, 2000 at 09:05:52AM -0700, Simon Marlow wrote: > Hmmm. Still can't reproduce this. I tried 4.06 & 4.07 on both x86 and > Sparc. Just for the record: FreeBSD 3.4 -- Volker Stolz * [EMAIL PROTECTED] * PGP

Re: Blocking I/O & FIFOs

2000-05-10 Thread Volker Stolz
xceptions when attempting to > read from a socket and the writing end has been closed. Sorry to disappoint you, but it happens even with a sigPIPE-handler (anyways, it should have segfaulted when no handler was installed, shouldn´t it?). -- Volker Stolz * [EMAIL PROTECTED] * PGP

Blocking I/O & FIFOs

2000-05-10 Thread Volker Stolz
/fifo; ./test Fail: end of file Action: hGetChar Any suggestions? Calling Concurrent.threadWaitRead first doesn´t work, either. -- Volker Stolz * [EMAIL PROTECTED] * PGP

threadWaitRead & signals broken

2000-03-23 Thread Volker Stolz
ar hvar >> writeChan muxCh Quit) > forkIO (threadWaitRead (fdToInt fd) >> writeChan mux Msg) > msg <- readChan mux the threadWaitRead will be triggered first. -- Volker Stolz * [EMAIL PROTECTED] * PGP

Signals once again.

2000-03-15 Thread Volker Stolz
putStrLn "welcome" zeile <- getLine putStrLn (": " ++ zeile) -- Volker Stolz * [EMAIL PROTECTED] * PGP

Re: Still problems with non-blocking I/O?

1999-12-06 Thread Volker Stolz
into those 4252 bytes, though :) To invoke 'block' for example in 'bash', you can use: PS1='`block`\W@\h [\t]> '; export PS1 in .profile (take care of all those quotes!). -- Volker Stolz * [EMAIL PROTECTED] * PGP

[module Time] ghc-4.05 & time-travelling

1999-11-22 Thread Volker Stolz
time <- getClockTime putStrLn (show time) time1 <- toCalendarTime time putStrLn (show time1) let ntime = addToClockTime (TimeDiff { tdYear=0, tdMonth=0, tdDay=0, tdHour=0, tdMin=0, tdSec=10, tdPicosec=0}) time time2 <- toCalendarTime ntime putStrLn (show time2) -- Volker Stolz * [EMAIL PROTECTED] * PGP