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> |