From: Benjamin K. <mis...@we...> - 2005-11-16 18:36:27
|
I am interested in Haskell mainly because of wxHaskell. So my situation is that I know little about Haskell and little about wxHaskell but want to learn both as fast as possible. After downloading and installing ghc-6.0.1 and wxhaskell-0.4 (.dmg version for mac - I'm using Mac OS X 10.2.8 Jaguar) I tried to compile the examples in the wx, wxcore and contrib-directorys. Some worked fine (contrib: Camels.hs, wx: BouncingBalls.hs, HelloWorld.hs, Minimal.hs, TimeFlows.hs, wxcore: ByeDemo.hs, ImageViewer.hs, Paint.hs) others not. The errors I got looked like this: Layout.hs:18: Variable not in scope: `alignment' Layout.hs:19: Variable not in scope: `alignment' But when I tried to help myself the dirty way (remove the alignment-assignments) I got the following errors: Layout.hs:18: Couldn't match `IO' against `(->) [Prop (TextCtrl ())]' Expected type: IO t Inferred type: [Prop (TextCtrl ())] -> IO (TextCtrl ()) Probable cause: `textEntry' is applied to too few arguments in the call (textEntry p [text := "100"]) In a 'do' expression: xinput <- textEntry p [text := "100"] This is how I called ghc from the shell: ghc -package wx -o layout Layout.hs What's my fault (except from my dirty methods and my impatience)? bened |