ghci and ld scripts

2004-05-16 Thread Duncan Coutts
So here's the problem: We have a Haskell binding to a C library (one of the gtk extension libs) which uses the pthread library. So we put pthread in the extra_libraries section of our ghc package conf file. This works fine when building standalone programs, however when we try and use this

Re: reaching Happy parser

2004-05-16 Thread Donald Bruce Stewart
mechvel: Please, who knows how to download and install in the easiest way the Happy parser (today, within 3-4 hours) ? The situation is as follows * RedHat linux (version about 8), libc-2.2, i386-unknown, * (configure: error: Happy version 1.13 or

Re: [Haskell] ANNOUNCE: HaRP (Haskell Regular Patterns) version 0.1

2004-05-16 Thread Niklas Broberg
Dylan Thurston wrote: So I guess that in foo [/ a? 2 b /] = (a,b) the type of a is '[Int]', not 'Maybe Int', right? Aye. If you wanted Maybe Int, you would need to do foo [/ [EMAIL PROTECTED] 2 b /] = (a,b) I wrote: I'm starting to think maybe our context dependent approach to implicit bindings

Re: [Haskell] ANNOUNCE: HaRP (Haskell Regular Patterns) version 0.1

2004-05-16 Thread Andreas Farre
Dylan Thurston said: By the way, are nested regular expression matches allowed? Something like: foo :: [[Int]] - Int foo [/ _* [/ 5* a 6* /] _* /] = a Yep. ? If so, what is the type of a in foo [/ _* [/ 5* a* /]* _* /] It would be [[Int]] because of the fact that [/ 5* a* /] alone

Re: [Haskell] ANNOUNCE: cpphs-0.2

2004-05-16 Thread Tomasz Zielonka
On Sat, May 15, 2004 at 09:30:47PM +0100, Malcolm Wallace wrote: I believe this to be a reasonably complete and correct implementation, and have tested it on some non-trivial examples from the standard libraries (e.g. Foreign.Storable and HOpenGL). Nevertheless, there will be bugs and I

Re: [Haskell-cafe] GHC and libc

2004-05-16 Thread Sven Panne
Per Larsson wrote: [...] P.S Now everything seems to work, except that I get the compiler message: /usr/local/lib/ghc-6.2/libHSunix.a(User__17.o)(.text+0x160): In function 'SystemziPosixziUser_getUserEntryForName_entry': : Using 'getpwnam_r' in statically linked applications requires at

Re: [Haskell-cafe] GHC and libc

2004-05-16 Thread Glynn Clements
Per Larsson wrote: P.S Now everything seems to work, except that I get the compiler message: /usr/local/lib/ghc-6.2/libHSunix.a(User__17.o)(.text+0x160): In function 'SystemziPosixziUser_getUserEntryForName_entry': : Using 'getpwnam_r' in statically linked applications requires at