[GHC] #987: X11: foreign declarations use Haskell types instead of C ones

GHC trac at galois.com
Fri Jan 25 05:37:49 EST 2008


#987: X11: foreign declarations use Haskell types instead of C ones
-------------------------------+--------------------------------------------
 Reporter:  ross               |          Owner:         
     Type:  bug                |         Status:  closed 
 Priority:  normal             |      Milestone:  Not GHC
Component:  libraries (other)  |        Version:  6.6    
 Severity:  normal             |     Resolution:  fixed  
 Keywords:                     |     Difficulty:  Unknown
 Testcase:  N/A                |   Architecture:  Unknown
       Os:  Unknown            |  
-------------------------------+--------------------------------------------
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 I believe this was done last year.  The X11 package has the following
 patches:

 {{{
 Thu Mar 29 02:05:33 BST 2007  thedward at antejentacular.org
   * (X11.Graphics) More Int -> CInt cleanup ; Will break existing
 programs.

   This patch takes care of the rest of the Int usages.

   These changes break API compatibility. Existing programs will likely
   require (minor[1]) changes to compile once these changes are applied.

   [1]Mostly just switching from Int to CInt or using fromIntegral as
 appropriate

 Wed Mar 28 07:24:53 BST 2007  thedward at antejentacular.org
   * Changing Int to CInt and building with -D_XSERVER64 (when appropriate)

   I went through and weeded out all the Ints I could find, replacing them
   with CInts, adding fromIntegral calls as necessary.

   I modified configure.ac and X11.buildinfo.in to support detecting 64-bit
   systems. (inspired by the test in the xorg build).

   All these changes seem to make X11 much more useful on 64-bit systems.

   Most importantly, I've got xmonad up and running beautifully.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/987#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list