To get ‘haskeline’ to compile on Windows I have to apply the patch below.    
Otherwise this alignment thing is defined twice and the build fails

Could someone fix it properly?  Thanks!

Simon


modified   System/Console/Haskeline/Backend/Win32.hsc

@@ -167,7 +167,7 @@ getKeyEvent p = do

data Coord = Coord {coordX, coordY :: Int}

                 deriving Show



-#let alignment t = "%lu", (unsigned long)offsetof(struct {char x__; t (y__); 
}, y__)

+-- #let alignment t = "%lu", (unsigned long)offsetof(struct {char x__; t 
(y__); }, y__)

instance Storable Coord where

     sizeOf _ = (#size COORD)

     alignment _ = (#alignment COORD)


_______________________________________________
ghc-devs mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to