The following three-liner creates a stack overflow (on my machine, MacOS), and
I'm a bit puzzled as to why:
import System.Random
main = do
mapM (const (getStdRandom (randomR (0, 5::Int [0..1000]
botanix:~ stolz$ ./a.out
Stack space overflow: current size 8388608 bytes.
Use
Blimey, I didn't notice that Krzysztof came to the same conclusion a bit
earlier today, so I guess the answer is somewhere in his remark One possible
solution is to make cell holding std gen strict.. I'd still be interested in
how to profile for this scenario, though.
-Volker
* Rich Fought [EMAIL PROTECTED]:
I've got some unit test code that forks off test processes using the
'system' function and then delays using 'threadDelay' to synchronize
with the test process.
This has worked fine until I upgraded to 6.4.2, now some of the
'threadDelay' calls never
)
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 problems.
Volker
--
Volker Stolz * http://www-i2
* Christian Maeder [EMAIL PROTECTED]:
P.S. the non-termination of the final stage2 compiler still needs
further investigation (that I cannot do alone)
How about throwing 'truss' at it? Maybe this reveals a blatant reason.
Volker
--
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP ***
* Christian Maeder [EMAIL PROTECTED]:
I also had to adapt again the call of ctime_r in ghc/rts/RtsUtils.c
#if HAVE_CTIME_R
- ctime_r(now, nowstr, 26);
+ ctime_r(now, nowstr);
#else
26 is supposed to be the size of the buffer nowstr. Maybe 27 is also
fine? According to the man
Am 20. Apr 2006 um 11:19 CEST schrieb Christian Maeder:
Volker Stolz wrote:
Without the 3rd arg is according to POSIX (check your Solaris man page).
'buf' is required to be at least 26 bytes.
You're right, but it does not compile without the 3rd argument! Maybe
this is due to gcc_4.0.3_s10
* Simon Marlow [EMAIL PROTECTED]:
This bit of Makefile code is possibly going wrong for you:
-include $(shell echo $(ProjectDirectory) | tr A-Z a-z)/mk/config.mk
-include $(shell echo $(ProjectDirectory) | tr A-Z a-z)/mk/version.mk
Try this instead:
$ make Project=Ghc
* 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 use another threading library here
* Li, Peng [EMAIL PROTECTED]:
In GHC, how can I allocate a chunk of memory aligned to some block
size (say, 512 or 1024 bytes)? I tried to specify it in the
alignment method in the Storable typeclass, but that does not seem
to work. Is Storable.alignment really used in GHC? If so, is there a
* vadim [EMAIL PROTECTED]:
when trying to rebuild ghc-6.4 from source, I fall into following error:
gcc -o hp2ps -O -I../../includes -Wall AreaBelow.o AuxFile.o
Axes.o Curves.o Deviation.o DimensiDeviation.o(.text+0x316): In function
`Deviation':
: undefined reference to `sqrt'
For some
In gmane.comp.lang.haskell.glasgow.bugs, you wrote:
Simon M is away today and Monday, but I do recall him saying something
about the Solaris port being broken. I'm sure he would welcome help
getting it fixed. Are there any of you who build GHC from source, and
know Solaris?
I'm currently
* Christian Maeder [EMAIL PROTECTED]:
I used gcc_2.95.3 until I discovered the warning:
LdvProfile.c:43: #error Please use gcc 3.0+ to compile this file with
DEBUG; gcc 3.0 miscompiles it
This usually happens if you use build.mk.sample. Simply remove the
-DDEBUG from the options (unless
In gmane.comp.lang.haskell.glasgow.user, you wrote:
Volker Stolz writes:
Fix attached.
Thank you! Is this patch gonna make it into CVS?
Done. Sven is probably on vacations.
--
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
In gmane.comp.lang.haskell.glasgow.user, you wrote:
[missing ieee_fp_set_control]
I've been staring at
http://www.freebsd.org/cgi/man.cgi?query=ieee_set_fp_controlapropos=0sektion=0manpath=OSF1+V5.1%2Falphaformat=html
to find out the correct fpset*()-function. fpsetmask() should do
the trick, but
In gmane.comp.lang.haskell.glasgow.user, you wrote:
It shouldn't even build OpenOL, however, because I ran
./configure with --disable-openal.
I see the flag in libraries/config.log, so it has been
passed through alright. But ${SUBDIRS} contains the OpenAL
directory nonetheless afterwards.
In gmane.comp.lang.haskell.glasgow.user, you wrote:
Is anyone else seeing this on his system?
getUserEntryForName [] = print . userName
wasabi
Fixed in CVS -- I was only able to test this on SunOS where your
example would segfault.
--
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP
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
, 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.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME
In gmane.comp.lang.haskell.glasgow.user, you wrote:
When compiling using ghc, I get the following error:
Parser.o(.text+0x10fc5): In function `r1fgN_entry':
: undefined reference to `DataziTuple_Z77T_con_info'
collect2: ld returned 1 exit status
What platform and gcc? Could you please invoke
In local.glasgow-haskell-users, you wrote:
1. 'isEmptyChan x' blocks if x is empty and some other thread is waiting
to read from x:
Prelude Control.Concurrent x - newChan
Prelude Control.Concurrent forkIO $ readChan x
Prelude Control.Concurrent empty - isEmptyChan x
*** Exception: thread
In local.glasgow-haskell-users, you wrote:
Essentially, Network.recvFrom is only of use to simple, stupid
programs; specifically, programs which only wish to accept a single
connection.
This has been noted (various?) times on the mailing-lists. You'd never
want to use it in a real application.
In local.glasgow-haskell-users, you wrote:
On 22 June 2004 10:39, Bernard James POPE wrote:
Supposing that such a thing is indeed possible is there any chance
that it could be folded into GHC? (Then I wouldn't have to ship my
own variant of the runtime with buddha.)
Certainly, I don't see
In local.glasgow-haskell-users, you wrote:
Christian Maeder wrote:
What is ctype.h good for?
A good question. Its only use seems to be in
ghc/rts/RtsFlags.c where it is used for functions
like isdigit and isspace for decoding the RTS flags.
Maybe it should be retired altogether.
I'm
In local.glasgow-haskell-users, you wrote:
Please, who knows how to download and install in the easiest
way the
Happy parser
Maybe, you now some mirrors ...
http://www.mirror.ac.uk/sites/www.haskell.org/
--
http://www-i2.informatik.rwth-aachen.de/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
--
Volker
In local.glasgow-haskell-users, you wrote:
we have compiled ghc-6.2 --enable-hopengl from source (with ghc-6.0)
on SunOS userv2 5.8 Generic_108528-27 sun4u sparc SUNW,Ultra-60.
Linking ...
Undefined first referenced
symbol in file
In local.glasgow-haskell-users, you wrote:
Ok, that was definitely my fault. I´ve built the gnu-make and tried again.
After an hour of compilation ghc ended with:
./../ghc/utils/hsc2hs/hsc2hs-inplace -Iinclude -I../../ghc/includes -I.
GHC/Unicode.hsc
Unicode.hsc: In function `main':
In local.glasgow-haskell-users, you wrote:
I have a ghc program that appears to be causing a memory error (either
segfaulting or tripping up X and killing my session).
Are you sure it's segfaulting? You might simply run low on memory and
your system starts killing processes to free up memory.
In local.glasgow-haskell-users, you wrote:
It might even be possible to create the file and then
remove(3) it, right away. The file handle will continue to
work, but there is never an entry in the file system.
IIRC this is not possible because files are referenced in the
different phases by
In local.glasgow-haskell-users, you wrote:
(This is when invoking ghci -package yahu)
Loading package base ... linking ... done.
Loading package yahu ... linking ...
/.../chalmers.se/fs/cab/cs/work/proj/multi/pub/lib/yahu/Yahu/YahuHaskell.o:
unknown symbol `__stginit_List_'
ghc-6.0.1: panic!
],
framework_dirs = [],
extra_frameworks = []}]
--
Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
In local.glasgow-haskell-users, you wrote:
I can't do much with the provided examples, because getSignalMask exits
the program with:
Fail: invalid argument
Action: getSignalMask
Reason: Invalid argument
Looks like an actual bug in the library. Should be fixed in CVS now.
--
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
On Fri, Jul 11, 2003 at 08:39:54AM +0200, Rafael Martinez Torres wrote:
(piper,pipew) - createPipe
piperHandle - fdToHandle(piper)
threadWaitRead ( fdToInt(handleToFd(piperHandle)) )
message - hGetLine piperHandle --or whatever.
There's no need to call threadWaitRead, Haskell's RTS will take
In local.glasgow-haskell-users, you wrote:
For Unix, use Posix.handleToFd to get a descriptor, then fdopen() (in
C, or write a foreign import) to get a FILE*.
Also, don't forget about synchronisation issues between the C and
Haskell interfaces to the descriptor (e.g. buffering).
After the
In local.glasgow-haskell-users, you wrote:
I use the Posix library since I have to communicate via a pipe with
another UNIX process.
Therefore I have to use
fdRead :: Fd - ByteCount - IO (String,ByteCount)
Why do you have to use an Fd? A regular handle should be sufficient.
Where do you get
'getCountChan' turns its
back on the channel, the item will still have disappeared.]
[although I consider
mapM_ (uncurry putMVar) (zip counts (map (+1) vs))
rather neat :)]
Not as neat as
zipWithM_ putMVar counts (map (+1) vs)
Point taken.
Volker
--
Volker Stolz * http://www-i2
In local.glasgow-haskell-users, you wrote:
I've been using sockets and handles with ghc-5.04.3.
The strange thing is now that when I make a handle
out of a socket and ask whether the handle is readable
or writable, it returns True for the former and False
for the latter, although sockets are
[Moving to [EMAIL PROTECTED]
In local.haskell, you wrote:
I've been using sockets and handles with ghc-5.04.3.
The strange thing is now that when I make a handle
out of a socket and ask whether the handle is readable
or writable, it returns True for the former and False
for the latter,
In local.glasgow-haskell-users, you wrote:
I am having trouble installing the package in a non-standard place. After
downloading and unpacking I did:
There have been some fixes to this particular package. Please check
if there's a more recent package (t 1 day)!
Volker
--
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
In local.haskell, you wrote:
I am student of Computer Science and I have to write a lecture on ghc
network module. Where can I get some code samples of this module. I am
looking for short progrmas that show how to use network module.
There's nothing special about Haskell's/GHC's networking
In local.glasgow-haskell-users, you wrote:
I'm trying to compile the latest version of GHC from CVS. I followed
the instructions on GHC's web page and everything worked just fine.
But when I updated the sources with cvs update -dP as instructed,
CVS checked-out pretty much everything the CVS
In local.glasgow-haskell-users, you wrote:
| 2.4. Updating Your Source Tree
| It can be tempting to cvs update just part of a source tree to bring in
| some changes that someone else has made, or before committing your own
| changes. This is NOT RECOMMENDED! [...]
|
| So, to avoid a lot of
):
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/mailman/listinfo
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
In local.glasgow-haskell-users, you wrote:
After processing a random number of connections, the server dies with
Fail: invalid argument
Action: accept
Reason: Invalid argument
[...]
I don't know what's wrong, I'm afraid. Any chance you could supply us
with a working example that
Am 17. Mar 2003 um 02:04 CET schrieb Kirsten Chevalier:
On Sun, Mar 16, 2003 at 04:09:31PM +0100, Volker Stolz wrote:
In local.glasgow-haskell-users, you wrote:
Sendfile.hsc:94:
Couldn't match `IO ()' against `Fd - Fd - Int - Int - IO ()'
Should be fixed in CVS now, thanks
In local.glasgow-haskell-users, you wrote:
Sendfile.hsc:94:
Couldn't match `IO ()' against `Fd - Fd - Int - Int - IO ()'
Should be fixed in CVS now, thanks!
--
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
rage against the finite state machine
a typdef for CInt]
--
Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME
http://news.bbc.co.uk: `Israeli forces [...], declaring curfews that
confine more than 700,000 people to their homes.'
___
Glasgow-haskell-users mailing list
In local.glasgow-haskell-users, you wrote:
I have a program that uses INET sockets and I wanted to change it to
use Unix domain sockets. Here is the relevant code:
sock - listenOn portID
(h, hostname, portnumber) - accept sock
I get an error message when running it with
portID =
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
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
In local.glasgow-haskell-users, you wrote:
readSymbolicLink is broken, it assumes that readlink(2) null terminates its
result when it doesn't. this causes all sorts of badness.
This should fix it, although all my CVS trees are hosed right now
(now how did I manage to break something in the
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 fine
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]':
In local.haskell, you wrote:
Since I have 3 threads waiting on takeMVar, do I have to wrap
all of them with Exception.catch?
Yes. Especially since ghc-5.04, you cannot be sure which of the
blocked threads will get killed first:
In local.haskell, you wrote:
test: no threads to run: infinite loop or deadlock?
My problem is that this behavior is actually desired, but
how do I catch this exception and do some bookkeeping
(closing external IO, etc.) and then a proper exit?
You can wrap the `takeMVar' with
Control.Exception.catch (takeMVar mv_deadlock) -- deadlock
(\ e - putMVar mv_should_work ())
yield yield yield
Control.Exception.catch (takeMVar mv_should_work)
(\ e - putStrLn $ main caught: ++ (show e))
\end{code}
--
Volker Stolz * http://www-i2
In local.glasgow-haskell-users, you wrote:
is System.system broken in 5.04? i am using the rpm provided on the web
site and this call appears to be broken. in particular, using strace i
find that it is attempting the following call
[pid 16975] execve(n/sh, [/bin/sh, -c, echo foo], [/* 67
how to build entirely static
binaries. Opinions?
--
Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME
http://news.bbc.co.uk: `Israeli forces [...], declaring curfews that
confine more than 700,000 people to their homes
would be to rename the current -static to e.g.
-hsstatic and let the actual -static be equivalent to
-hsstatic -optl-static. That way, you don't loose the current
possibility, although I cannot thing of any useful application, either.
--
Volker Stolz * http://www-i2.informatik.rwth-aachen.de/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 which will
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 correspondence!
___
Glasgow-haskell-bugs mailing list
[EMAIL
(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
, 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-haskell-bugs mailing list
[EMAIL
.
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!
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman
,
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
) in paragraph at lines 16--18
Volker Stolz * [EMAIL PROTECTED]
Please use PGP or S/MIME for correspondence!
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
)
Ptr is abstract so I cannot create this Ptr myself. Maybe the Ptr-module
just lacks a 'minusOnePtr' similar to 'nullPtr'?
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org
by Simon Marlow and works. OTOH, this is not the bug you're seeing.
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
to 'connect' it says;
select(14, [], [13], NULL, {134, 217727}) = 1 (out [13], left {134, 21})
getsockopt(13, SOL_SOCKET, SO_ERROR, [0], [1]) = 0
This looks like some on-the-fly bitrotting in ghci :-/
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
:: IO ()
main = do
withModule (Just .) simple ModuleBindOnLoad $ \ mod - do
funptr - moduleSymbol mod simple
when (isNothing funptr) $ error fo!
let res = iterator__ (castPtrToFunPtr (fromJust funptr))
withCString hello $ \ str - res str 1
return ()
\end{code}
--
Volker
) = 0x2 (flags O_RDWR)
write(2, \nFail: , 7) = 7
write(2, failed\nAction: connect\nReason: B..., 51) = 51
write(2, \n, 1) = 1
_exit(1)= ?
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
), 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
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http
++ fifoname
openFile fifoname ReadMode
else error $ Can´t create FIFO ++ fifoname
)
\end{code}
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http
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 hGetLine (remember the note I
sent about fork()ing).
--
Volker Stolz * [EMAIL
In local.haskell, you wrote:
is there some documentation about which modules reside in which packages in
GHC?
You can take a look at http://www.haskell.org/ghc/docs/latest/set/book-hslibs.html.
The top-level chapters ('category') are the packages.
--
Volker Stolz * [EMAIL PROTECTED] * PGP
know how Windows/cygwin handle these things. You could modify
SocketPrim to use the number 6 instead of trying to do the getprotobyname
lookup, but that's not a real remedy.
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users
Am 22. Oct 2001 um 12:56 MET DST schrieb Simon Marlow:
The call doesn't block, because the socket is set to non-blocking mode.
Or have you perhaps observed different behaviour? It works here.
Okay, I'm stupid. I can clearly see the 'threadWaitRead' statement now.
--
Volker Stolz * [EMAIL
())]
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
, unless you use forkIO.
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
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
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org
? http://germany.indymedia.org/2001/07/4866.html
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
in separate directories. How can I tell
--make to look for them?
Use the same options as you´d use for plain ghc: -i
Saludos,
Volker
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http
(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-haskell-bugs mailing list
[EMAIL
Just s - do SocketPrim.inet_addr s
SocketPrim.bindSocket sock (SocketPrim.SockAddrInet port i)
SocketPrim.listen sock SocketPrim.maxListenQueue
return sock
--
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
- mkPortNumber p))
print reached
(PortNumber myPort) - socketPort socket
print NOT REACHED
let record = SocketR {
socketR = socket,
portR = (read (show myPort)) :: Port -- sigh
}
return record
I'm still on it.
--
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL
suppose I'm missing something essential here, as there must be a
better way of doing it when passing a variable of type Int.
--
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED
have to provide the corresponding top-level .hi and some .a-files to
the ghc command line for compiling.
Is there any way to use ghc --make without having to provide access to all
of the *source* files and make it use the pre-compiled stuff?
--
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL
general way.
Okay, here a nice way to handle this:
#if __GLASGOW_HASKELL__ = 501
mkPortNumber = fromIntegral
#endif
--
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED
.
--
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
in reality.)
Looks to me like you're forgetting that the OS will give you a
sigPIPE on (semi-)closed sockets, which translates to a segfault
unless you install a signal handler:
- http://www.haskell.org/ghc/docs/latest/set/socket.html#AEN13989
- socket(2)
--
Abstrakte Syntaxträume.
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 Mon Apr
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 Stolz * [EMAIL PROTECTED] * PGP + S
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
.
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
could hack ghci do add main = print 1 in case main is undefined,
but that's not really something I'd like to admit afterwards...
--
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL
ntly 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
1 - 100 of 132 matches
Mail list logo