
Hello! 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: <error-messages> 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 ... C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' ghc.exe: unable to load package `readline' </error-messages> What am I doing wrong? TIA Dmitri Pissarenko PS: Here is the code of the application module Main where import Graphics.UI.WXCore main :: IO () main = run gui gui :: IO () gui = do frame <- frameCreateTopFrame "Hello World" windowShow frame windowRaise frame return () -- Dmitri Pissarenko Software Engineer http://dapissarenko.com

Your code works fine on Linux. :-) Oh, by the way, I compiled my wxHaskell with GHC 6.2.2 I note that the windows binary on the download site was compiled with GHC 6.2.1, and apparently these are not binary compatible with GHC 6.2.2. Best, John Velman On Wed, Jan 12, 2005 at 04:16:33PM +0100, Dmitri Pissarenko wrote:
Hello!
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:
<error-messages> 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 ... C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' ghc.exe: unable to load package `readline' </error-messages>
What am I doing wrong?
TIA
Dmitri Pissarenko
PS: Here is the code of the application
module Main where
import Graphics.UI.WXCore
main :: IO () main = run gui
gui :: IO () gui = do frame <- frameCreateTopFrame "Hello World" windowShow frame windowRaise frame return () -- Dmitri Pissarenko Software Engineer http://dapissarenko.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Wed, 12 Jan 2005 12:03:44 -0800, John Velman
Your code works fine on Linux. :-)
Oh, by the way, I compiled my wxHaskell with GHC 6.2.2 On Wed, Jan 12, 2005 at 04:16:33PM +0100, Dmitri Pissarenko wrote:
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
Hmm. I think this problem is specially on Windows binary by using GHCi. If you use GHC, programm may be compiled without following error message.
GHCi crashed with following error messages: <error-messages> 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 ... C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' ghc.exe: unable to load package `readline' </error-messages>
I saw this error message in other programs what GHCi on Windows call readline package automaticly. ex. HaXml program. (So I don't want to use HaXml program on windows.) This is GHCi bug. -- shelarcy <shelarcy capella.freemail.ne.jp> http://page.freett.com/shelarcy/

You can remove that error message by including following in package.conf file. Package {name = "readline", auto = True, import_dirs = ["$libdir/imports"], source_dirs = [], library_dirs = ["$libdir"], hs_libraries = ["HSreadline"], extra_libraries = ["readline", "advapi32"], include_dirs = [], c_includes = ["HsReadline.h"], package_deps = ["base"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []}, Jinwoo Lee Always remember that you are unique. Just like everyone else. jinwoo68@gmail.com shelarcy wrote:
On Wed, 12 Jan 2005 12:03:44 -0800, John Velman
wrote: Your code works fine on Linux. :-)
Oh, by the way, I compiled my wxHaskell with GHC 6.2.2 On Wed, Jan 12, 2005 at 04:16:33PM +0100, Dmitri Pissarenko wrote:
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
Hmm. I think this problem is specially on Windows binary by using GHCi. If you use GHC, programm may be compiled without following error message.
GHCi crashed with following error messages: <error-messages> 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 ... C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' ghc.exe: unable to load package `readline' </error-messages>
I saw this error message in other programs what GHCi on Windows call readline package automaticly. ex. HaXml program. (So I don't want to use HaXml program on windows.) This is GHCi bug.

Hello! Thanks for your answer! I solved the problem by using GHC 6.2.1 instead of GHC 6.2.2 (under Windows). Best regards Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com

Is someone aware of how to make it work with 6.2.2?
Thanks,
Michael
On Thu, 13 Jan 2005 18:09:20 +0100, Dmitri Pissarenko
Hello!
Thanks for your answer!
I solved the problem by using GHC 6.2.1 instead of GHC 6.2.2 (under Windows).
Best regards
Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

You can remove that error message by including following in package.conf file. Package {name = "readline", auto = True, import_dirs = ["$libdir/imports"], source_dirs = [], library_dirs = ["$libdir"], hs_libraries = ["HSreadline"], extra_libraries = ["readline", "advapi32"], include_dirs = [], c_includes = ["HsReadline.h"], package_deps = ["base"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []}, Jinwoo Lee Always remember that you are unique. Just like everyone else. jinwoo68@gmail.com Michael Walter wrote:
Is someone aware of how to make it work with 6.2.2?
Thanks, Michael
On Thu, 13 Jan 2005 18:09:20 +0100, Dmitri Pissarenko
wrote: Hello!
Thanks for your answer!
I solved the problem by using GHC 6.2.1 instead of GHC 6.2.2 (under Windows).
Best regards
Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (5)
-
Dmitri Pissarenko
-
Jinwoo Lee
-
John Velman
-
Michael Walter
-
shelarcy