[Haskell-cafe] Problem with wxHaskell

Dmitri Pissarenko mailing-lists at dapissarenko.com
Wed Jan 12 10:16:33 EST 2005


I've downloaded wxHaskell, ran the wxhaskell-register.bat file and now try to
build a minimal wxHaskell program.

For this purpose, I tried to start GHCi using following command

ghci -package wx GuiTest.hs

GHCi crashed with following error messages:

GHC Interactive, version 6.2.2, for Haskell 98.
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 ...
C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function'
ghc.exe: unable to load package `readline'

What am I doing wrong?


Dmitri Pissarenko

PS: Here is the code of the application

module Main where

import Graphics.UI.WXCore

main :: IO ()
  = run gui

gui :: IO ()
  = do frame <- frameCreateTopFrame "Hello World"
       windowShow frame
       windowRaise frame
       return ()
Dmitri Pissarenko
Software Engineer

More information about the Haskell-Cafe mailing list