Re: Fwd: Unable to compile ghc-8.2.2 with ghc-8.4.3

2018-08-31 Thread Sven Panne
Am Fr., 31. Aug. 2018 um 21:17 Uhr schrieb Brandon Allbery < allber...@gmail.com>: > I don't think ghc ever used gcc's version of this; it used the Evil > Mangler to do it. > Well, I actually *do* think it used GCC's global variables: I fixed GHC in the late 90's to make it work on HP-UX, and I'm

Re: Fwd: Unable to compile ghc-8.2.2 with ghc-8.4.3

2018-08-31 Thread Sven Panne
Am Fr., 31. Aug. 2018 um 18:52 Uhr schrieb Ben Franksen < ben.frank...@online.de>: > Am 31.08.2018 um 11:57 schrieb Sven Panne: > > Am Fr., 31. Aug. 2018 um 11:11 Uhr schrieb Sam Halliday < > > sam.halli...@gmail.com>: > > > >> [...] It would make

Fwd: Unable to compile ghc-8.2.2 with ghc-8.4.3

2018-08-31 Thread Sven Panne
Am Fr., 31. Aug. 2018 um 11:11 Uhr schrieb Sam Halliday < sam.halli...@gmail.com>: > [...] It would make a lot of sense for the > "unregistered" sources to be made available as an optional download > alongside the source code, if haskell.org were open to that > possibility. IIRC, the generated C

Re: [ANNOUNCE] GHC 8.4.1 released

2018-03-09 Thread Sven Panne
2018-03-08 17:57 GMT+01:00 Ben Gamari : > The GHC developers are very happy to announce the 8.4.1 release of > Glasgow Haskell Compiler. [...] Just a few tiny remarks regarding "base": * https://downloads.haskell.org/~ghc/8.4.1/docs/html/users_guide/8.4.1-notes.html#included-libraries says t

Re: PSA: `cabal update` command needs manual unsticking

2018-01-02 Thread Sven Panne
2018-01-02 2:24 GMT+01:00 Gershom B : > A recent update to hackage, which fixed up the 01-index.tar.gz file, > revealed a bug in existing versions of cabal-install, when index files > are cleaned up. This bug means that the `cabal update` command, which > updates the hackage index file, will fail

Re: [Haskell-cafe] [ANNOUNCE] GHC 8.2.2 release candidate 2

2017-11-06 Thread Sven Panne
2017-11-06 17:54 GMT+01:00 Ben Gamari : > Next time something like this arises please do open a ticket. > Yep, will do... > Yes, I have opened a differential adding such a flag. See D4164 [1]. > Please bikeshed to taste. > Thanks for the quick fix! > In general I would really prefer that we

Re: [Haskell-cafe] [ANNOUNCE] GHC 8.2.2 release candidate 2

2017-11-05 Thread Sven Panne
2017-11-05 15:37 GMT+01:00 : > A better approach might be to develop a "machine-readable" output format > which then is kept stable, and can be enabled with a flag. Git has a > similar solution. > Without doubt, this is definitely the better approach, but this is hardly what can be achieved for 8

Re: [ANNOUNCE] GHC 8.2.2 release candidate 2

2017-11-05 Thread Sven Panne
This is not an issue about 8.2.2 per se, but 8.2 changes in general: Recent discussions on Haskell Cafe showed serious problems with Emacs' haskell-mode due to some ad hoc changes like https://phabricator.haskell.org/D3651. Related GitHub issues: https://github.com/haskell/haskell-mode/issues/1

Re: DeriveFoldable treatment of tuples is surprising

2017-03-22 Thread Sven Panne
2017-03-21 22:29 GMT+01:00 Edward Kmett : > [... In general I think the current behavior is the least surprising as it > "walks all the a's it can" and is the only definition compatible with > further extension with Traversable. [...] > OTOH, the current behavior contradicts my intuition that wra

Re: Proposal process status

2016-07-21 Thread Sven Panne
2016-07-20 23:16 GMT+02:00 Adam Foltzer : > [...] I'll quote the Motivations section: > >1. Higher than necessary barrier-to-entry. > > For the purposes of this proposal, whether we would prefer a competing > alternative is secondary to the fact that a Github account has become a > very low co

Re: Proposal: ArgumentDo

2016-07-10 Thread Sven Panne
2016-07-10 11:28 GMT+02:00 C Maeder : > [...] Why does an explicit infix operator make such a big difference for > you? > > (if c then f else g) $ if d then a else b > > (if c then f else g) if d then a else b > [...] > Because at first glance, this is visually only a tiny fraction away from

Re: Proposal: ArgumentDo

2016-07-08 Thread Sven Panne
2016-07-08 12:28 GMT+02:00 Joachim Breitner : > Currenlty, > > foobar > (do f &&& g) > x > > calls foobar with two arguments, while > > (do f &&& g) > x > > calls (f &&& g) with one argument. The ArgumentDo proposal does not change > that, only that the parenthesis become r

Re: Proposal: ArgumentDo

2016-07-08 Thread Sven Panne
2016-07-08 9:09 GMT+02:00 Joachim Breitner : > Am Freitag, den 08.07.2016, 08:35 +0200 schrieb Sven Panne: > >foobar > > do f &&& g > > x > [...] Only with the proposed addition, it becomes an argument to foobar. > [...] > Huh? Nope! T

Re: Proposal: ArgumentDo

2016-07-07 Thread Sven Panne
[ There is a trend to repeat one's argument about this proposed extension in various mailing lists/wiki pages/etc., so let's repeat myself, too... :-] 2016-07-07 19:44 GMT+02:00 Carter Schonwald : > the fact that its perilously close to looking like *1 typo* away from a > parser error about recor

Re: [Feedback requested]: -fhelpful-import-errors

2016-02-16 Thread Sven Panne
2016-02-16 18:12 GMT+01:00 Tom Sydney Kerckhove : > [...] As suggested by `thomie`, I created a design proposal at > https://ghc.haskell.org/trac/ghc/wiki/Proposal/HelpfulImportError > and am now looking for feedback. [ Not sure if the feedback should be submitted here on in the corresponding ti

Re: Reconsidering -Wall and -Wcompat

2016-02-14 Thread Sven Panne
2016-02-14 17:12 GMT+01:00 Ben Gamari : > [...] This proposal is motivated by concern expressed by some that -Wcompat > would see little usage unless it is placed in one of the warning sets > typically used during development. One such set is -Wall, which enables > a generous fraction of GHC's war

Re: Typing pattern synonyms

2015-09-30 Thread Sven Panne
2015-09-30 20:10 GMT+02:00 David Feuer : > The Eq constraint is needed to support pattern matching, the raison d’être > of pattern synonyms. > I was just a bit confused by the fact that normally you don't need an 'Eq a' constraint for pattern matching. But looking at the Haskell report, one can se

Typing pattern synonyms

2015-09-30 Thread Sven Panne
The type of a pattern synonym like pattern FOO = 1234 seems to be '(Eq a, Num a) => a', which makes partially makes sense, although it's not immediately clear to me where the 'Eq a' part comes from. But probably that would be clear if I read the desugaring rules closely enough. ;-) My real que

Re: HEADS UP: Need 7.10.3?

2015-09-17 Thread Sven Panne
Building Haddock documentation on Windows for larger packages (e.g. OpenGLRaw) is broken in 7.10.2, similar to linking: The reason is once again the silly Windows command line length limitation, so we need response files here, too. Haddock 2.16.1 already has support for this, but this seems to be b

Re: simultaneous ghc versions

2015-07-31 Thread Sven Panne
> > [...] The only thing I find missing is the ability to install a binary > distribution without overwriting the existing symlinks (e.g. ghc -> > ghc-7.8.4). > I second the OP's request and Reid's one: I think the binary distributions for *nices should neither contain unversioned executables nor

Re: broken source link

2015-07-24 Thread Sven Panne
2015-07-24 9:59 GMT+02:00 Christian Maeder : > when trying to look up the original definition for > Data.List.transpose in > > https://downloads.haskell.org/~ghc/latest/docs/html/libraries/Data-List.html > I found that the source link > > https://downloads.haskell.org/~ghc/latest/docs/html/librari

Re: ANNOUNCE: GHC 7.10.2 Release Candidate 2

2015-07-07 Thread Sven Panne
2015-07-07 13:30 GMT+02:00 Thomas Miedema : > > > On Tue, Jul 7, 2015 at 10:54 AM, Sven Panne wrote: >> >> * The package cache is still always out of date (I thought there was a >> fix for that): >> > > Please reopen https://ghc.haskell.org/trac/ghc/ticke

Re: ANNOUNCE: GHC 7.10.2 Release Candidate 2

2015-07-07 Thread Sven Panne
2015-07-07 7:26 GMT+02:00 Mark Lentczner : > And now Windows RC2 for Haksell Platform is also here: > > http://www.ozonehouse.com/mark/platform/ > > [...] > I noticed 2 problems so far: * The package cache is still always out of date (I thought there was a fix for that): ---

Re: Trouble building applications with Haskell GLUT and freeglut on OS X with GHC 7.10.1

2015-06-22 Thread Sven Panne
Just a quick addition: The bug tracking this on the GLUT package side is https://github.com/haskell-opengl/GLUT/issues/19, and it seems to be a regression in the 7.10 series... ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http:

Re: [Haskell-cafe] RFC: "Native -XCPP" Proposal

2015-05-06 Thread Sven Panne
2015-05-06 16:21 GMT+02:00 Bardur Arantsson : > +1, I'll wager that the vast majority of usages are just for version > range checks. The OpenGL-related packages used macros to generate some binding magic (a "foreign import" plus some helper functions for each API entry), not just range checks. I h

Re: Increased memory usage with GHC 7.10.1

2015-05-03 Thread Sven Panne
2015-05-02 12:01 GMT+02:00 Paolino : > Hello, I succeded in compiling > https://hackage.haskell.org/package/OpenGLRaw-2.4.1.0/docs/src/Graphics-Rendering-OpenGL-Raw-Functions.html > on a 32 bit machine with 2GB of memory with ghc 7.10.1. O_O To alleviate the pain a bit, I've uploaded a new version

Re: Unable to build 7.10.1 RC1 on Jessie

2015-01-25 Thread Sven Panne
2015-01-25 11:18 GMT+01:00 harry : > [..] This can be reproduced by running the following commands in the > debian:jessie docker image: > > apt-get update > apt-get install ncurses-dev curl gcc ghc make libgmp-dev xz-utils > curl > http://downloads.haskell.org/~ghc/7.10.1-rc1/ghc-7.10.0.20141222-sr

Re: ANNOUNCE: GHC 7.8.4 Release Candidate 1

2014-11-26 Thread Sven Panne
2014-11-25 20:46 GMT+01:00 Austin Seipp : > We are pleased to announce the first release candidate for GHC 7.8.4: > > https://downloads.haskell.org/~ghc/7.8.4-rc1/ [...] Would it be possible to get the RC on https://launchpad.net/~hvr/+archive/ubuntu/ghc? This way one could easily test things

Re: RFC: changes to -i flag for finding source files

2014-04-28 Thread Sven Panne
2014-04-25 22:26 GMT+02:00 Malcolm Wallace : > [...] The feature seems like a very low power-to-weight ratio, so -1 from me. -1 from me, for the same reasons. ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org

Re: PROPOSAL: Literate haskell and module file names

2014-03-17 Thread Sven Panne
2014-03-17 14:22 GMT+01:00 Brandon Allbery : > On Mon, Mar 17, 2014 at 9:08 AM, Edward Kmett wrote: >> >> Foo+rst.lhs does nicely dodge the collision with jhc. > > > Is this legal on Windows? According to http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx it is, altho

Re: Linking and constants problems with OpenAL under Windows

2009-05-02 Thread Sven Panne
Am Sonntag, 15. Februar 2009 08:32:59 schrieb Jared: > The OpenAL binding's wiki page directs questions to Haskell-Cafe, but the > more serious of my problems seems to be with GHC. My platform is GHC > 6.10.1 under Windows XP. This post boils down to two questions. First, > why would GHCi and GH

Re: compiling on solaris 9

2007-09-17 Thread Sven Panne
On Monday 17 September 2007 18:14, skaller wrote: > [...] The algorithm I presented (crudely) goes further. > What you're doing is enough for a language that doesn't have to > bind to C and/or C++. [...] I think this is an exaggeration, we do bind to C and do this quite successfully. As long as C

Re: compiling on solaris 9

2007-09-15 Thread Sven Panne
On Saturday 15 September 2007 13:58, skaller wrote: > [...] > 1. Measure the size (and alignment, while at it) of all the > integer types. (trial execute and run). > [...] > 4. For the ones provided, AND size_t, ptrdiff_t, check > their size (and signedness). (trial execution) Small additional not

Re: compiling on solaris 9

2007-09-15 Thread Sven Panne
On Saturday 15 September 2007 13:58, skaller wrote: > The RIGHT way to do this is rather messy .. but there is only > one right way to do it. [...] IMHO things are not that black or white: I think we have a tradeoff between almost 100% fool-proofness (which is basically the approach you describe)

Re: compiling on solaris 9

2007-09-15 Thread Sven Panne
On Friday 14 September 2007 16:33, Robert Andersson wrote: > stdint.h seems to be unavailable on solaris 9. Looking at the > rts/posix/OSMem.c file we find > > /* no C99 header stdint.h on OpenBSD? */ > #if defined(openbsd_HOST_OS) > typedef unsigned long my_uintptr_t; > #else > #include

Re: ANNOUNCE: GHC 6.8.1 Release Candidate

2007-09-15 Thread Sven Panne
On Friday 14 September 2007 15:42, Ian Lynagh wrote: > On Fri, Sep 14, 2007 at 12:20:20PM +0200, Philip K.F. Hölzenspies wrote: > [...] > > /usr/share/aclocal/progsreiserfs.m4:13: warning: underquoted > > definition of AC_CHECK_LIBREISERFS > > run info '(automake)Extending aclocal' > > or see >

Re: ghc configure

2007-06-23 Thread Sven Panne
On Tuesday 01 May 2007 13:02, Claus Reinke wrote: > [...] would it be possible > to have a "configuration package" with nothing but the common checks? then > every package, and ghc itself, could depend on that package being there, > and every package configure could modularly use the information fr

Re: ghc6.6 on ps3 - compile error in StgCRun

2007-06-23 Thread Sven Panne
[ Sorry for the late reply, but I'm just digging through 2-3 months of emails... ] On Saturday 21 April 2007 12:13, Tristan Allwood wrote: > [...] I now have a shiny new, all extralib (-opengl) ghc 6.6 all working :) Is there no OpenGL support on the PS3 platform you are compiling on or is it j

Re: scripts on unix

2007-03-15 Thread Sven Panne
On Thursday 15 March 2007 15:50, I wrote: > [...] Same question for runhugs, as the corresponding executable is called > hugs98. [...] Oops, I mixed up the RPM package name and the executable name. The former is hugs98, the latter simply hugs, so runhugs is totally OK. Cheers, S.

Re: scripts on unix

2007-03-15 Thread Sven Panne
On Thursday 15 March 2007 15:27, Malcolm Wallace wrote: > Sven Panne <[EMAIL PROTECTED]> wrote: > > And 'runhs' is actually not a very good name to run nhc98, > > runnhc or runnhc98 would be much better IMHO. > > Well, I chose 'runhs', because i

Re: scripts on unix

2007-03-15 Thread Sven Panne
On Thursday 15 March 2007 10:56, Malcolm Wallace wrote: > [...] If you install hmake, and change 'runhaskell' to runhs, it works. This reminds me of something, at least for the Linux world: No Haskell compiler/interpreter should directly install 'runhaskell'. Instead of that, it should only dire

Re: ghc-6.6-src-extralibs.tar.bz2

2006-12-09 Thread Sven Panne
Am Freitag, 8. Dezember 2006 21:08 schrieb Ian Lynagh: > This will probably have been made with whatever OpenGL was in darcs when > the build was done (the binary distributions come from the nightly > builds). [...] OK, so in a nutshell: Everything is fine with the binary releases, it can just be

Re: ghc-6.6-src-extralibs.tar.bz2

2006-12-07 Thread Sven Panne
Am Donnerstag, 7. Dezember 2006 11:37 schrieb Christian Maeder: > The archive > http://www.haskell.org/ghc/dist/6.6/ghc-6.6-src-extralibs.tar.bz2 > does not contain the files ControlPoint.hs and Domain.hs from directory > libraries/OpenGL/Graphics/Rendering/OpenGL/GL/ If I see things correctly, th

Re: OpengGL lockup using GHC 6.6 on Intel Mac

2006-12-01 Thread Sven Panne
Am Mittwoch, 29. November 2006 19:29 schrieb Joe Jones: > [...] Anyone know of any issues with the current HOpenGL on Intel? [...] The Haskell versions of the NeHe tutorials work for me on x86_64 openSUSE 10.1 (GHC 6.6 and bleeding edge GHC from darcs repo, perhaps a few weeks old), so I guess t

Re: OpenGL failing with Mac Intel 6.6 distribution

2006-10-30 Thread Sven Panne
Am Samstag, 28. Oktober 2006 19:41 schrieb Deborah Goldsmith: > [...] Since it failed at the gcc stage rather than the ghc stage, I don't > think that it's that the package wasn't installed. I think something > about the way the distribution was put together is wrong. [...] The diff you've sent ea

Re: Packages in GHC 6.6

2006-09-24 Thread Sven Panne
Am Mittwoch, 23. August 2006 15:23 schrieb Bulat Ziganshin: > [...] > i think that better way is to supply non-core libs in source form and > just recompile them in this case. so, [...] Nice theory, but this doesn't work at all in practice: The majority of the packages mentioned so far are not pu

Re: HOpenAL and Haskore

2006-09-24 Thread Sven Panne
Am Donnerstag, 24. August 2006 11:29 schrieb Juan Rodríguez Hortalá: > [...] > And the later is about HOpenAL. Some information is found in > http://www.haskell.org/HOpenGL/newAPI/index.html , on the entry for > Sound, but I wonder if there is some tutorial or additional > documentation anywhere. [

Re: Building head & numerics project

2006-05-06 Thread Sven Panne
Am Freitag, 5. Mai 2006 09:13 schrieb Simon Peyton-Jones: > The most straightforward thing to do is not to build the OpenAL package. > I'm sure Sven is working on fixing it, but meanwhile it's entirely > inessential. Simply edit the libraries/Makefile. I've already fixed the ALUT package, but I'd

Re: ANNOUNCE: GHC vesrion 6.4.2

2006-05-01 Thread Sven Panne
Am Sonntag, 30. April 2006 10:15 schrieb Bulat Ziganshin: > may be it's not too late to just rerelease GHC? especially if hooks > interface in current cabal version don't planned to change in > foreseeable future. having common cabal interface for 6.4.2 and 6.6 > will be a great thing I think that

Re: 6.4.2 Build error

2006-04-26 Thread Sven Panne
I thought the new version handled > compatibility with different versions of the OpenAL library better > (indeed that's why it was updated), but it appears not. I'm hoping Sven > Panne, the author of OpenAL, will be able to shed some light. *sigh* It looks like if the OpenAL packa

Re: How to access hs_free_fun_ptr from a Visual Studio DLL

2006-03-28 Thread Sven Panne
Am Montag, 27. März 2006 20:56 schrieb Wolfgang Thaller: > >C -> adjustor -> stub -> Haskell -> stub -> adjustor -> C > > > > It could be the case that the adjustor tail-jumps to the stub, but > > this is not > > guaranteed to be the case for all platforms. > > Hmmm, I thought it was. > [...] >

Re: How to access hs_free_fun_ptr from a Visual Studio DLL

2006-03-27 Thread Sven Panne
Am Montag, 27. März 2006 14:27 schrieb Brian Hulley: > [...] For example, in: > >foreign import ccall "wrapper" mkIO :: IO () -> IO (FunPtr (IO ())) >foreign import ccall set_callback :: FunPtr (IO ()) -> IO () >foreign import ccall run :: IO () > >foo1 :: IO () >foo1 = do >

Re: How to access hs_free_fun_ptr from a Visual Studio DLL

2006-03-26 Thread Sven Panne
Am Samstag, 25. März 2006 20:00 schrieb Brian Hulley: > I've found a workaround to the problem below: instead of trying to use > hs_free_fun_ptr, I instead pass a FunPtr to the Haskell function > freeHaskellFunPtr into my DLL, and use this to free everything, finally > using it to free itself (!) w

Re: ForeignPtr's - why can't they be passed directly to foreign functions?

2006-03-19 Thread Sven Panne
Am Mittwoch, 15. März 2006 18:16 schrieb Duncan Coutts: > On Wed, 2006-03-15 at 17:01 +, Brian Hulley wrote: > > The above two things were what I was expecting the compiler to do for me > > instead of me having to manually write a wrapper function in Haskell > > using withForeignPtr for each wr

Re: How to find out the C type signature corresponding to a Haskell function type in FFI?

2006-03-09 Thread Sven Panne
Am Donnerstag, 9. März 2006 08:46 schrieb Bulat Ziganshin: > Thursday, March 9, 2006, 2:20:00 AM, you wrote: > >> foreign import ccall duma_init :: Int -> IO Int > > MQK> HsInt duma_init(HsInt arg); > MQK> Or use int on the C side and CInt on the Haskell side. > MQK> fromIntegral can be used for co

Re: darcs switchover

2005-12-27 Thread Sven Panne
Am Freitag, 16. Dezember 2005 12:20 schrieb Malcolm Wallace: > I've been looking at the cvs configuration file CVSROOT/modules. > I /think/ the procedure is something like changing this: > > nhc98src-d nhc98 nhc98 > nhc98libraries -d nhc98/src/libraries fptools/libraries

Re: New bug tracker: Trac

2005-12-09 Thread Sven Panne
Am Dienstag, 6. Dezember 2005 17:42 schrieb Simon Marlow: > [...] > Developers with an account on cvs.haskell.org: please add yourselves as > users on the Trac, so I can give out permissions to edit tickets. You > create a user like this: > > - log in to cvs.haskell.org > - htpasswd /srv/trac/

Re: GHCI and archive libraries.

2005-12-03 Thread Sven Panne
Am Samstag, 3. Dezember 2005 15:17 schrieb Lennart Augustsson: > And on many platforms (well, at least a few years ago) a "shared" > library doesn't have to be PIC. The dynamic loader can do relocation > when it loads the file. (Then it can't be shared.) > > But this was a few years ago on Solari

Re: GHCI and archive libraries.

2005-12-03 Thread Sven Panne
Am Samstag, 3. Dezember 2005 14:48 schrieb Lennart Augustsson: > Can't you unpack the ar library and then link the object files > into a shared library? On most platforms the code in a *.a library is not shared library code, e.g. it is not PIC or something like that. Nevertheless, I think that th

Re: adding to GHC/win32 Handle operations support of Unicodefilenamesand files larger than 4 GB

2005-11-26 Thread Sven Panne
Am Freitag, 25. November 2005 14:38 schrieb Simon Marlow: >[...] If you want to make it clearer, then add new CPP symbols > > WIN32_UNICODE_FILENAMES > WIN32_64BIT_OFFSETS > > these can be set based on mingw32_HOST_OS for now, but it leaves the > possibility of using autoconf later. [...] Perf

Re: adding to GHC/win32 Handle operations support of Unicode filenames and files larger than 4 GB

2005-11-22 Thread Sven Panne
Am Montag, 21. November 2005 13:01 schrieb Bulat Ziganshin: > [...] > #ifdef mingw32_HOST_OS > type CFilePath = LPCTSTR > type CFileOffset = Int64 > withCFilePath = withTString > peekCFilePath = peekTString > #else > type CFilePath = CString > type CFileOffset = COff > withCFilePath = withCString >

Re: Help wanted! Win32 and HGL for GHC on Windows

2005-10-14 Thread Sven Panne
Am Freitag, 14. Oktober 2005 11:28 schrieb Duncan Coutts: >[...] > Well for the special case of the SOE library I have a re-implementation > of it based on Gtk+/cairo which should work on all platforms. [...] Which additional stuff would one have to install on an e.g. off-the-shelf SuSE Linux dis

Re: GHCI Problem

2005-09-04 Thread Sven Panne
Am Sonntag, 4. September 2005 16:26 schrieb Dominic Steinitz: > Can anyone tell me why ghci has this problem whereas ghc itself doesn't and > how I fix it. > > Thanks, Dominic. > > [EMAIL PROTECTED] LAMH]$ ghci -package hsql-mysql >___ ___ _ > / _ \ /\ /\/ __(_) > / /_\// /_/ / / |

Re: rendering fonts with OpenGL

2005-07-14 Thread Sven Panne
[ redirecting to the hopengl list... ] Am Dienstag, 12. Juli 2005 14:32 schrieb Felix Breuer: > What is the recommended way to render fonts (i.e. text) using GHC and > OpenGL? > > I know about libraries/GLUT/examples/RedBook/Font.hs, but I do not want > to define the font's letter by hand. So, my

Re: GHC 6.4 release candidates available

2005-03-01 Thread Sven Panne
Ian Lynagh wrote: [...] Is there an equivalent of this (the no-OpenGL bit): $(MAKE) prefix=`pwd`/debian/tmp/usr install GhcLibsWithOpenGL=NO GhcLibsWithGLUT=NO that still works or do I have to do it by hand? The OpenGL/GLUT/OpenAL packages (and a few others) are enabled automatically if the ri

Re: GHCi and C++.

2005-02-25 Thread Sven Panne
Wolfgang Thaller wrote: [...] *) static constructors/destructors Sometimes there are pieces of code that expect to be called before main() or at program termination. The GHCi Linker doesn't support this, so some code may crash because things haven't been initialised properly. This will definitely

Re: RFC: hyperlinks in Haddock docs

2005-02-25 Thread Sven Panne
Simon Marlow wrote: They don't look too bad to me... a bit far to the right, perhaps, but not too bad. Perhaps some lines in that table would help, or alternating grey/white background for the rows? [...] What I mean with "drunk" can be seen here: https://aedion.de/haskell/haddock.png It's slig

Re: RFC: hyperlinks in Haddock docs

2005-02-24 Thread Sven Panne
Simon Marlow wrote: On 22 February 2005 19:37, Duncan Coutts wrote: Excellent! Thanks a lot. Any hint as to when the next Haddock release will be? Maybe when I've got this GHC release out of the way and my hair has grown back :-S Before we do a release, I think two issues should be solved IMHO:

Re: library path problem

2005-02-18 Thread Sven Panne
Akos Korosmezey wrote: When I compile a simple code importing Control.Monad.State with ghc-6.4.20050217 on Linux I get linking errors: [...] You have to use "-package mtl" when "--make" is not used, because mtl (where Control.Monad.State resides) is not an auto package, for more details see: h

Re: compiling GHC with a custom path to GCC

2005-02-18 Thread Sven Panne
Remi Turk wrote: [...] When using the following command-line CC=gcc3 CXX=g++3 nice ./configure --enable-hopengl --prefix=/var/tmp/ghc --with-gcc=/usr/local/bin/gcc3 [...] Slightly off-topic: You don't need --enable-hopengl anymore when compiling GHC 6.4 or the CVS HEAD, the OpenGL/GLUT/OpenAL pac

Re: newbie: GHC 6.3 build problem

2005-01-23 Thread Sven Panne
This should be fixed now. The fastest way to a working installation is to simply update the toplevel "mk" directory, remove all "package.conf.installed" files, and do a "make install". Cheers, S. ___ Glasgow-haskell-users mailing list Glasgow-haskell-u

Re: newbie: GHC 6.3 build problem

2005-01-23 Thread Sven Panne
Alson Kemp wrote: [...] I'm trying to build cvs-HEAD and am having problems. The build completes just fine, but the built GHC 6.3 does not include the "-I" include directories option for GCC. [...] I've just stumbled over exactly the same problem in this second, and I'm already investigating wha

Re: ghc for hp-ux 11.11...

2004-12-21 Thread Sven Panne
[EMAIL PROTECTED] wrote: Okay, I've tried to follow the directions, and ran into a couple minor issues I was able to work through, but I got stuck at the "cd H/libraries && make boot && make" stage. The host system is redhat enterprise linux 3, the target is hp-ux 11.11, the output is below: [...]

Re: Error building GHC: can't locate import `Package'

2004-12-18 Thread Sven Panne
Peter Simons wrote: [...] It might be good to remove the file in the "clean" or "distclean" targets, IMHO. I also noticed that ghc/utils/ghc-pkg/.cvsignore lists it as an ignorable file, which is why "cvs update" didn't show anything. Hmmm, removing countably infinite files which don't belong to th

Re: Error building GHC: can't locate import `Package'

2004-12-18 Thread Sven Panne
Peter Simons wrote: When building the current CVS HEAD with ghc-6.2.2 on Linux/x86, I get this error: [...] It seems that ParsePkgConfLite.hs omits the "Distribution" part when importing Distribution.Package. Hmmm, there is no ParsePkgConfLite.hs in the HEAD anymore. Perhaps you have some old cruf

Re: building cygwin

2004-12-06 Thread Sven Panne
Simon Marlow wrote: [...] I doubt it'll be trivial - probably lots of #ifdef mingw32_TARGET_OS will need to change to #if defined(mingw32_TARGET_OS) || defined(cygwin_TARGET_OS) [...] Hmmm, having some fragile OS-dependent #ifdefs is not the way to go. While you are there, every #ifdef

Re: Bug in touchForeignPtr?

2004-11-22 Thread Sven Panne
Keean Schupke wrote: Nope there are some unix resources that c exit routines do not free like semaphores. Which library/OS calls do you mean exactly? I always thought that files are the only resources surviving process termination. Cheers, S. ___ Glasg

Re: Bug in touchForeignPtr?

2004-11-22 Thread Sven Panne
Abraham Egnor wrote: I've found that when writing an interface to a C library that requires resource management, it's much better to use the withX (see Control.Exception.bracket) style of function than to use finalizers - programs are much easier to reason about and debug. ... and have a much more

Re: Bug in touchForeignPtr?

2004-11-22 Thread Sven Panne
Keean Schupke wrote: [...] Whatever happens I think it must make sure all system resources allocated by a program are freed on exit - otherwise the machine will have a resource leak and will need rebooting eventually. That's an OS task IMHO, not really the task of an RTS. Looks like you're working

Re: CVS build failure

2004-11-06 Thread Sven Panne
Peter Simons wrote: Linux x86, I configure my build with the script: | #! /bin/sh -- | | GHC="ghc-6.2.2" | SUBDIRS="alex ghc haddock happy hslibs libraries" | | for n in ${SUBDIRS} .; do | echo >$n/mk/build.mk "XMLDocWays := html" | done | | autoreconf -i | ./configure --prefix=/usr/lo

Re: proposal for ghc-pkg to use a directory of .conf files

2004-11-06 Thread Sven Panne
Duncan Coutts wrote: [...] The advantage of doing this is that it makes things easier for the package managers. Each individual file can belong to the appropriate package and so instead of having to execute registration/unregistration actions on install/uninstall it's just another file to add/remov

Re: CVS build failure

2004-11-05 Thread Sven Panne
Peter Simons wrote: And some more information on the issue. When I run the configure script, I see this error message on the screen (which probably won't make it into the config.log output): | checking for xmllint... /usr/bin/xmllint | checking for DocBook DTD... ok | checking for xsltproc... /u

Re: Double -> CDouble, realToFrac doesn't work

2004-11-04 Thread Sven Panne
l) when x does not correspond to a real number. | -----Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-users- | [EMAIL PROTECTED] On Behalf Of Sven Panne | Sent: 08 August 2004 17:02 | To: Hal Daume III | Cc: GHC Users Mailing List; Malcom Wallace | Subject: Re: Double -

Re: Building the add-ons in libraries/...

2004-11-04 Thread Sven Panne
Peter Simons wrote: The CVS version of the libraries tree comes with all kinds of neat and dangerously unstable code I'd like to use, particularly the "arrows" subdirectory. Now I wonder: Is there some "build.mk" magic I could perform to tell GHC to build these libraries as part of my normal build?

Re: Change in ghc-6.2.2 distribution files

2004-10-23 Thread Sven Panne
Gregory Wright wrote: Did the file ghc-6.2.2.tar.bz2 get changed without the version number being changed? The md5 sum of the files has changed, breaking the darwinports and presumably the *BSD ports builds as well. I didn't see any notice to the list, so I'm not sure if the change is intentional,

Re: [Haskell] Re: ANNOUNCE: GHC version 6.2.2

2004-10-20 Thread Sven Panne
Tom Davie wrote: The darwin ports version appears not to be too happy just now... [...] /var/tmp//ccjMNPay.s: No space left on device [...] It looks like it's your disk which isn't too happy... :-) Cheers, S. ___ Glasgow-haskell-users mailing list [EMA

Re: newCString -- to 'free' or not?

2004-09-26 Thread Sven Panne
Glynn Clements wrote: Peter Simons wrote: When I create a CString with Foreign.C.String.newCString, do I have to 'free' it after I don't need it anymore? Or is there some RTS magic taking place? How about Foreign.Marshal.Utils.new and all those other newXYZ functions? Yes. The new* functions alloc

Re: Release candidate for 6.2.2 availabe

2004-09-20 Thread Sven Panne
Peter Simons wrote: I have some trouble building ghc from CVS HEAD. I'm not sure whether this applies to the release candidate version, too, Nope... but I figured I'd better report it anyway, just in case. Fine, we like to hear about bugs... :-} 1) The build fails: My fault, already fixed. 2) "m

Re: Double -> CDouble, realToFrac doesn't work

2004-08-08 Thread Sven Panne
Hal Daume III wrote: [...] Prelude Foreign.C> (0 :: CDouble) / 0 NaN Prelude Foreign.C> (0 :: Double) / 0 NaN Prelude Foreign.C> realToFrac ((0 :: Double) / 0) :: CDouble -Infinity yikes! the NaN got turned into a -Infinity!!! aside from manually checking for 'strange' Double/CDouble values and w

Re: type synonyms in instances...

2004-07-18 Thread Sven Panne
MR K P SCHUPKE wrote: [...] It just tidies up a few long instances. ... and results in far better documentation when Haddock is used. That's just another use for the oh-so-ugly cpp. :-] A small excerpt from my OpenGL binding: -- OpenGL/include/HsOpenGLTypes.h

Re: Socket Options

2004-06-29 Thread Sven Panne
Carsten Schultz wrote: Wouldn't that make getSocketOption :: Socket -> SocketOption -> IO Int a bit strange? How would you propose to change it? Possible, but also possibly overkill, would be: newtype Debug = Debug Bool newtype SendBuffer = SendBuffer (Maybe Int) [...] class SocketOption a where [

Re: ghci and ld scripts

2004-05-21 Thread Sven Panne
Simon Peyton-Jones wrote: We've no idea what to do here. In your case it'd be possible to just ignore the script, but presumably not so in general. [...] I've just made a quick test on my SuSE 9.1 Linux and it seems to be the case that an explicit "-lpthread" is not necessary anymore, even for pro

Re: Two problems with heap profiling

2004-05-09 Thread Sven Panne
Stefan Reich wrote: [...] The program crashes every time I run it (Windows XP this time, but I assume that doesn't make a difference). Hmmm, it works with GHC 6.2.1 and the one from the HEAD on my x86 Linux box. Perhaps something WinDoze-related, I don't know => SimonM... Cheers, S.

Re: [HOpenGL] GHC 6.2.1 Binding Completeness

2004-05-05 Thread Sven Panne
[ I'm cross-posting this, perhaps some kind soul has binary snapshots available. ] Yann Morvan wrote: [...] I recently installed the last version of GHC (6.2.1) that comes with the new OpenGL binding. I was just starting to port my code to it, but I have trouble finding some basic functionnalities

Re: UTF-8 encode/decode libraries.

2004-04-26 Thread Sven Panne
Duncan Coutts wrote: On Mon, 2004-04-26 at 18:49, David Brown wrote: [...] toUTF :: String -> String Hmmm, "String -> [Word8]" would be nicer... fromUTF :: String -> String ... and here: "[Word8] -> String" or "[Word8] -> Maybe String". Furthermore, UTF-8 is not restricted to a maximum of 3 bytes

Re: "undefined references" when using package

2004-04-18 Thread Sven Panne
Jan Christiansen wrote: [...] Sadly defining the dependencies didn't solve the problem. I get this error message: Preprocess/PhilsLine.o(.text+0x13e): In function `s2We_entry': : undefined reference to `CHDziBaseTypes_CodePosition_con_info' Preprocess/PhilsLine.o(.text+0x25e): In function `s2W6_ent

Re: "undefined references" when using package

2004-04-17 Thread Sven Panne
Jan Christiansen wrote: I try to generate a package out of some haskell sources. Everything looks to work fine but when I try to compile a program using this package I get a linking error. It reports "undefined reference" to seemingly everything that is accessible form outside the package. I'm u

Re: Two problems with heap profiling

2004-04-17 Thread Sven Panne
Stefan Reich wrote: Problem 1: -hr crashes in some circumstances. [...] No idea about this one... Problem 2: hp2ps doesn't work at all. [...] That's a little bit harsh. :-) First of all it's not hp2ps, but GHC's RTS which has a buglet. Furthermore, it only has this problem in some locales. As a wo

Re: What means MutVar# ?

2004-04-08 Thread Sven Panne
Hans Nikolaus Beck wrote: [...] I've readed tha writeIORef (and readIoRef etc) is used to write directly to memory places fo implementing variables, as in example in HOpenGL used. Is this also Haskell standard ? Huh? I'm not sure what you mean exactly, but with the help of unsafePerformIO and a pra

Re: Release Candidate for 6.2.1 available

2004-03-11 Thread Sven Panne
Just a short note from my side: I've tested both the branch (not the .tar.bz2) on x86 Linux and the .msi on Win2k. Both seem to work fine... Cheers, S. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/gla

  1   2   3   >