Re: How to use C-land variable from Cmm-land?

2012-12-09 Thread Axel Simon
On 09.12.2012, at 00:12, Yuras Shumovich shumovi...@gmail.com wrote: It looks wrong for me: the highest part of %rax remains uninitialized. When 32 bits are assigned to any of the standard registers, the upper 32 bits are implicitly set to zero. Intel is weird. Axel

Re: Proposal: EPHEMERAL pragma

2012-10-25 Thread Axel Simon
On 25.10.2012, at 16:45, Johan Tibell wrote: Interesting idea. On Thu, Oct 25, 2012 at 6:56 AM, José Pedro Magalhães j...@cs.uu.nl wrote: 3. Emit a warning if the generated core code still contains uses of Rep. I think this part will be really annoying, as GHC might end up generating

Fwd: [Gtk2hs-users] GHC 7.4+ rts_evalIO

2012-01-28 Thread Axel Simon
Dear ghc developers, there seems to be a change in the C functions of ghc. How do we fix this? Is there some guide as to what has changed? Thanks, Axel Begin forwarded message: From: Andriy Polishchuk andriy.s.polishc...@gmail.com Date: 27. Januar 2012 03:36:50 MEZ To:

Re: [Gtk2hs-users] GHC 7.4+ rts_evalIO

2012-01-28 Thread Axel Simon
Oh, ok, sorry, I didn't realize this was the same issue. Please ignore this email then. Axel On 28.01.2012, at 14:40, Eugene Kirpichov wrote: Axel, See my recent email to gtk2hs-users, I already proposed a fix for this. 28.01.2012, в 17:36, Axel Simon axel.si...@in.tum.de написал(а

Re: renamed GMP symbols in GHC

2012-01-04 Thread Axel Simon
Hi all, On 04.01.2012, at 17:50, Joachim Breitner wrote: BTW, Is there a way to get the linker to create two independent copies of a library in one program space? Maybe if it is compiled as PIC (random name dropping here)? That would seem to be an elegant solution, as it makes the distro

Re: [Gtk2hs-users] cairo error: ghc.exe: unable to load package `cairo-0.12.0'

2011-04-04 Thread Axel Simon
Hi Daniel, On 04.04.2011, at 16:01, Daniel wrote: Hi list, I've built gtk2hs successfully for ghc-7.0.2, but if I try to load the example Drawing.hs from the cairo packages demo folder I get: *Main :load Drawing.hs [1 of 1] Compiling Main ( Drawing.hs, interpreted ) Ok,

Re: GHCi+Cairo, Windows

2011-02-03 Thread Axel Simon
Hi Alexey, On 01.02.2011, at 16:47, Alexey Shumitsky wrote: Hi, I have problem with ghci+cairo on windows. When I try to load, for example like this ghci -package cairo it fails with the following error: Loading package random-1.0.0.2 ... linking ... done. Loading package haskell98 ...

Re: backward compatibility

2011-01-21 Thread Axel Simon
be is if someone proposed it. That's the process we have in place for changing the base language. I have proposed to incorporate this extension into the Haskell standard. Axel Simon | -Original Message- | From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell- | users

Re: backward compatibility

2011-01-20 Thread Axel Simon
Hi Simon, On Jan 20, 2011, at 17:54, Simon Marlow wrote: The layout fix is this change: http://hackage.haskell.org/trac/ghc/changeset/9a82b1ffa35fa4c3927c66a1037a37d436cf6aac Another case where GHC was not strictly standards-compliant, and it was fixed by adding a flag for the extension.

Re: backward compatibility

2011-01-20 Thread Axel Simon
On 21.01.2011, at 03:12, Ian Lynagh wrote: On Thu, Jan 20, 2011 at 09:22:37PM +0100, Axel Simon wrote: In the case of the layout bug, I think it might be worth considering going the other way: adjusting the standard with what ghc has always done. Anyone can propose language changes

Re: behaviour of ghci on .c modules that are part of a library

2010-07-16 Thread Axel Simon
hit: http://hackage.haskell.org/trac/ghc/ticket/781 I was able to work around this problem by compiling the C modules with -fPIC. This bug is pretty bad, I'd say. I've added myself to its CC list. Cheers, Axel On 14.07.2010, at 16:51, Axel Simon wrote: Hi all, I'm trying to debug

Re: [Gtk2hs-devel] behaviour of ghci on .c modules that are part of a library

2010-07-16 Thread Axel Simon
Hi Simon, On 16.07.2010, at 14:29, Simon Marlow wrote: On 16/07/2010 12:36, Axel Simon wrote: Dear Haskell maintainers, I've progressed a little and found that the problem is down to accessing global variables that are declared in dynamic libraries. In a nutshell, this doesn't

behaviour of ghci on .c modules that are part of a library

2010-07-14 Thread Axel Simon
Hi all, I'm trying to debug a segfault relating to the memory management in Gtk2Hs. Rather than make you read the ticket http://hackage.haskell.org/trac/gtk2hs/ticket/1183 , I'll describe the problem: - compiler 6.12.1 or 6.12.3 - darcs head of Gtk2Hs with #define DEBUG instead of #undef

Re: mallocForeignPtr vs. C

2010-07-13 Thread Axel Simon
Hi Evan, Ed, On Jul 12, 2010, at 22:53, Edward Z. Yang wrote: Excerpts from Evan Laforge's message of Mon Jul 12 16:43:45 -0400 2010: Yeah, that's definitely the safest and simplest. But the copying defeats the purpose of passing a pointer in the first place, which was to not have to

Re: mallocForeignPtr vs. C

2010-07-13 Thread Axel Simon
On Jul 13, 2010, at 22:17, Edward Z. Yang wrote: Excerpts from Axel Simon's message of Tue Jul 13 16:03:01 -0400 2010: If your C code has a way to properly unref a pointer then you could wrap your ForeignPtr in a StablePtr and pass that to C land. Once C has freed the StablePtr the ForeignPtr

Re: hsc2hs on Mac OS 10.6 unreliable?

2010-06-09 Thread Axel Simon
Hi Christian, On 09.06.2010, at 10:30, Christian Maeder wrote: Chris Kuklewicz schrieb: hsc2hs: On OS 10.6 ghc is calling hsc2hs without any special -arch option, and hsc2hs is calculating offsets in x86_64 mode. This is breaking the interface between ghc and c-structures for various

hsc2hs on Mac OS 10.6 unreliable?

2010-06-08 Thread Axel Simon
Hi all, we're facing serious problems (the seg'faulting kind) with Gtk2Hs on Mac OS 10.6. Chris has tracked this down to incorrect structure offsets that hsc2hs calculates. The offsets that hsc2hs calculates are too large, so it is probably in x86_64 mode. The offsets with which Gtk+ was

Re: ANNOUNCE: GHC 6.12.3 Release Candidate 1

2010-05-27 Thread Axel Simon
On 27.05.2010, at 16:28, Christian Maeder wrote: Axel Simon schrieb: Hi Ian, I can build this version on Mac OS X 10.5 and compile Gtk2Hs against it. All concurrency demos work and the more complicated demos work that trigger several levels of callbacks (to C and back to Haskell). 1. I

Re: Re[2]: [Gtk2hs-users] ANNOUNCE: GHC 6.12.3 Release Candidate 1

2010-05-27 Thread Axel Simon
On 27.05.2010, at 19:50, Bulat Ziganshin wrote: Hello Axel, Thursday, May 27, 2010, 8:42:08 PM, you wrote: - you use -threaded to compile your program - you only use postGUISync and postGUIAsync from threads different to the Gtk2Hs thread Is this true? If yes, I'll give you an

Re: ANNOUNCE: GHC 6.12.3 Release Candidate 1

2010-05-24 Thread Axel Simon
Hi Ian, I can build this version on Mac OS X 10.5 and compile Gtk2Hs against it. All concurrency demos work and the more complicated demos work that trigger several levels of callbacks (to C and back to Haskell). Cheers, Axel On May 23, 2010, at 20:42, Ian Lynagh wrote: Hi all, We are

segmentation fault in Gtk2Hs callbacks

2010-05-06 Thread Axel Simon
Good morning, I'm looking at ticket http://hackage.haskell.org/trac/ghc/ticket/4038 and wonder who is to blame: - this segmentation fault occurs in Gtk2Hs' callbacks (i.e. a Haskell function pointer is being passed to C land) and in a signal (where a general machinery is used to invoke a

Re: Proposed ghc-pkg and cabal feature - right list?

2010-03-16 Thread Axel Simon
I'm replying to Simon M. and myself, as should have sent my first reply to the ghc users list, I guess. On 14.03.2010, at 10:54, Axel Simon wrote: Hi Dan, I reply to libraries, I think that's the right list for Cabal. On 13.03.2010, at 21:39, Dan Knapp wrote: There doesn't seem

Re: Problem with profiling

2009-06-02 Thread Axel Simon
On May 31, 2009, at 21:20, Marco Túlio Gontijo e Silva wrote: Hello, recently there was a thread about a problem in profiling in gtk2hs-users, and it was menitoned that this could be a GHC6 bug. The problem is described in http://sourceforge.net/mailarchive/forum.php?

Re: [grapefruit] can't run Grapefruit

2009-05-25 Thread Axel Simon
On May 25, 2009, at 19:26, Dean Herington wrote: I decided to try on Max OS X (10.5). It seemed to get a bit further, but still no joy. Anyone have a suggestion? bash-3.2$ ghci GHCi, version 6.10.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done.

ghc sensitive to struct layout

2005-02-10 Thread Axel Simon
Good morning, gcc uses a different convention from the Microsoft environment when it comes to laying out fields in C structs, in particular bit fields. Can I pass the -optc--mms-bitfields to ghc when it compiles via C without negative effect? This flag is not implicit at the moment which I

hsc2hs does not fail

2002-04-16 Thread Axel Simon
Hi, for some reason hsc2hs does not fail if the automatically generated program fails to execute. This only happends if I forget to set LD_LIBRARY_PATH before saying make. But it leads to a confusing error messages when an empty .hs file is left and ghc complaints with file name does not match

Weird symbol prevents GHCi from loading my package.

2002-02-13 Thread Axel Simon
Hi, I built quite a big library and turned it into a package. It works fine if use ghc -package gtk2 Blah.hs to compile things. But when I convert all the libraries to object files as described in the documentation, GHCi refuses to load the whole machinery: ~/source/mogul/fpDemo:$ ghci -package

Re: types from ghc - got them!

2000-11-21 Thread Axel Simon
On Tue, 21 Nov 2000, Bernard James POPE wrote: Obviously there are issues with type variables which are quantified outside the local definition, but careful naming of things should be able to fix this. Hi, For my master thesis I wrote a tool called Typeview (presented at IFL'00) that can

Programming Win32

1999-11-25 Thread Axel Simon
Hi all, I tried to write a Win32 program in with GHC 4.05 but I am stumbeling over the definition type WNDCLASS = (ClassStyle, -- style HINSTANCE, -- hInstance MbHICON, -- hIcon MbHCURSOR, -- hCursor MbHBRUSH,-- hbrBackground MbLPCSTR,-- lpszMenuName ClassName)