Haskeline on Windows

Simon Peyton Jones simonpj at microsoft.com
Thu Dec 31 22:31:03 UTC 2015


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)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20151231/b21dde6d/attachment-0001.html>


More information about the ghc-devs mailing list