From: jeff l. <m4d...@gm...> - 2005-01-03 09:42:52
|
Hello, I am trying to load and run a wxHaskell sample program but I'm not having much success. I am using ghc 6.2.2 on windows XP service pack 2. I have wxHaskell 0.8 installed and registered. The package seems to load up when I start ghci with -package wx (as showm below). The trouble is that I can't load my wxHaskell sample. I get the following message Compiling Main ( d:\users\jeff\src\haskell_tute\hello.hs, interprete d ) d:\users\jeff\src\haskell_tute\hello.hs:2: Failed to load interface for `Graphics.UI.WX': Bad interface file: D:\libraries\wxhaskell-0.8\lib/imports/Graphics/UI/W X.hi mismatched interface file versions: expected 6022, found 6021 Failed, modules loaded: none. I've tried editing the WX.hi file with gvim in hex mode, but that just leaves me with a corrupted WX.hi file. What do I do? Thanks in advance, Jeff Lasslett PS: Below is a full transript of the ghci session. ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.2.2, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \____/\/ /_/\____/|_| Type :? for help. Loading package base ... linking ... done. Loading package haskell98 ... linking ... done. Loading package lang ... linking ... done. Loading package concurrent ... linking ... done. Loading package QuickCheck ... linking ... done. Loading package readline ... linking ... done. Loading package util ... linking ... done. Loading package data ... linking ... done. Loading package wxcore ... linking ... done. Loading package wx ... linking ... done. Prelude> :load d:\users\jeff\src\haskell_tute\hello.hs Compiling Main ( d:\users\jeff\src\haskell_tute\hello.hs, interprete d ) d:\users\jeff\src\haskell_tute\hello.hs:2: Failed to load interface for `Graphics.UI.WX': Bad interface file: D:\libraries\wxhaskell-0.8\lib/imports/Graphics/UI/W X.hi mismatched interface file versions: expected 6022, found 6021 Failed, modules loaded: none. Prelude> |
From: Lemmih <le...@gm...> - 2005-01-03 09:56:53
|
Hello jeff. From the wxHaskell webpage about installing binary packages: "Make sure that you have the same version of the compiler installed, for example ghc6.2.1." A haskell library compiled for GHC 6.2.1 will not work with GHC 6.2.2. You can either downgrade your GHC installation or compile wxHaskell from source. On Mon, 3 Jan 2005 20:42:46 +1100, jeff lasslett <m4d...@gm...> wrote: > Hello, > > I am trying to load and run a wxHaskell sample program but I'm not > having much success. > I am using ghc 6.2.2 on windows XP service pack 2. I have wxHaskell > 0.8 installed and registered. The package seems to load up when I > start ghci with -package wx (as showm below). The trouble is that I > can't load my wxHaskell sample. I get the following message > > Compiling Main ( d:\users\jeff\src\haskell_tute\hello.hs, interprete > d ) > > d:\users\jeff\src\haskell_tute\hello.hs:2: > Failed to load interface for `Graphics.UI.WX': > Bad interface file: D:\libraries\wxhaskell-0.8\lib/imports/Graphics/UI/W > X.hi > mismatched interface file versions: expected 6022, found 6021 > Failed, modules loaded: none. > > I've tried editing the WX.hi file with gvim in hex mode, but that just > leaves me with a corrupted WX.hi file. > > What do I do? > > Thanks in advance, > > Jeff Lasslett > > PS: Below is a full transript of the ghci session. > ___ ___ _ > / _ \ /\ /\/ __(_) > / /_\// /_/ / / | | GHC Interactive, version 6.2.2, for Haskell 98. > / /_\\/ __ / /___| | http://www.haskell.org/ghc/ > \____/\/ /_/\____/|_| Type :? for help. > > Loading package base ... linking ... done. > Loading package haskell98 ... linking ... done. > Loading package lang ... linking ... done. > Loading package concurrent ... linking ... done. > Loading package QuickCheck ... linking ... done. > Loading package readline ... linking ... done. > Loading package util ... linking ... done. > Loading package data ... linking ... done. > Loading package wxcore ... linking ... done. > Loading package wx ... linking ... done. > Prelude> :load d:\users\jeff\src\haskell_tute\hello.hs > Compiling Main ( d:\users\jeff\src\haskell_tute\hello.hs, interprete > d ) > > d:\users\jeff\src\haskell_tute\hello.hs:2: > Failed to load interface for `Graphics.UI.WX': > Bad interface file: D:\libraries\wxhaskell-0.8\lib/imports/Graphics/UI/W > X.hi > mismatched interface file versions: expected 6022, found 6021 > Failed, modules loaded: none. > Prelude> > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > -- Friendly, Lemmih |