Thanks to a pointer someone gave me, I found wx-config at:

I followed your instructions, but I assumed that we should run the git lines if we have git, and darcs if we're using darcs. Do I need both git and darcs? I just have darcs installed. I had no problem building wxdirect:

PS C:\Users\Lyle\devel\haskell\wxhaskell\wxdirect> cabal install
Resolving dependencies...
Configuring wxdirect-
Preprocessing executables for wxdirect-
Building wxdirect-
[ 1 of 14] Compiling MultiSet         ( src\MultiSet.hs, dist\build\wxdirect\wxdirect-tmp\MultiSet.o )
[ 2 of 14] Compiling HaskellNames     ( src\HaskellNames.hs, dist\build\wxdirect\wxdirect-tmp\HaskellNames.o )
[ 3 of 14] Compiling Types            ( src\Types.hs, dist\build\wxdirect\wxdirect-tmp\Types.o )
[ 4 of 14] Compiling CompileSTC       ( src\CompileSTC.hs, dist\build\wxdirect\wxdirect-tmp\CompileSTC.o )
[ 5 of 14] Compiling ParseEiffel      ( src\ParseEiffel.hs, dist\build\wxdirect\wxdirect-tmp\ParseEiffel.o )
[ 6 of 14] Compiling CompileDefs      ( src\CompileDefs.hs, dist\build\wxdirect\wxdirect-tmp\CompileDefs.o )
[ 7 of 14] Compiling ParseC           ( src\ParseC.hs, dist\build\wxdirect\wxdirect-tmp\ParseC.o )
[ 8 of 14] Compiling Classes          ( src\Classes.hs, dist\build\wxdirect\wxdirect-tmp\Classes.o )
[ 9 of 14] Compiling CompileClassInfo ( src\CompileClassInfo.hs, dist\build\wxdirect\wxdirect-tmp\CompileClassInfo.o )
[10 of 14] Compiling DeriveTypes      ( src\DeriveTypes.hs, dist\build\wxdirect\wxdirect-tmp\DeriveTypes.o )
[11 of 14] Compiling CompileClassTypes ( src\CompileClassTypes.hs, dist\build\wxdirect\wxdirect-tmp\CompileClassTypes.o
[12 of 14] Compiling CompileHeader    ( src\CompileHeader.hs, dist\build\wxdirect\wxdirect-tmp\CompileHeader.o )
[13 of 14] Compiling CompileClasses   ( src\CompileClasses.hs, dist\build\wxdirect\wxdirect-tmp\CompileClasses.o )
[14 of 14] Compiling Main             ( src\Main.hs, dist\build\wxdirect\wxdirect-tmp\Main.o )
Linking dist\build\wxdirect\wxdirect.exe ...
Installing executable(s) in C:\Program Files\Haskell\bin

But I had trouble building wxcore:

PS C:\Users\Lyle\devel\haskell\wxhaskell\wxdirect> cd ..
PS C:\Users\Lyle\devel\haskell\wxhaskell> cd wxcore
PS C:\Users\Lyle\devel\haskell\wxhaskell\wxcore> cabal install
Resolving dependencies...
Configuring wxcore-
Preprocessing library wxcore-
cabal.exe: can't find source for Graphics.UI.WXCore.WxcClassTypes in src,
cabal.exe: Error: some packages failed to install:
wxcore- failed during the building phase. The exception was:
exit: ExitFailure 1

Do I need git?


On Wed, Sep 2, 2009 at 11:47 AM, Eric Y. Kow <> wrote:
Hi everybody,

For those of you not following wxhaskell-devel: Brian Lewis has been
doing which could make installing wxHaskell from source (and
consequently install wxHaskell-based applications) a lot easier.

He has cleaned up our build infrastructure, replacing our configure
script, makefile and trivial Cabal wrapper with a 100% Cabal based
solution.  This includes our wxc layer now specified through the
'c-sources' field in the cabal file.

It seems to work for me and Brian.  Could somebody else try it out,
maybe somebody on Windows?  Here's the procedure.

1. Install wxWidgets if you have not done so already.

  I never managed to use wxHaskell with the wxWidgets that comes with
  MacOS X Leopard.  On the other hand, building one for source works a
  lot better.  (don't forget --enable-unicode).  I had a similar
  experience with Ubuntu Linux too.

2. Update your PATH so that the wx-config from your wxWidgets is in it

3. Download Brian Lewis's work and install it

  git clone git://
  git clone git://
  darcs get
  cd wxdirect; cabal install; cd ..
  cd wxcore; cabal install; cd ..
  cd wxhaskell/wx; cabal install

4. Now try building a sample application and test it.

It would also be great if some wxHaskell developers could comment!  If
this works out it means we get much easier wxHaskell installation. :-)

Eric Kow <>
PGP Key ID: 08AC04F9

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
wxhaskell-users mailing list