Hi Henk-Jan,

I'm sorry about my reply is late. I didn't know what do you want to say
long time. I get similar problem when testing Camels' sample Tuesday. So, I
know your problem now.

On Thu, 16 Oct 2008 07:33:57 +0900, Henk-Jan van Tuyl <[EMAIL PROTECTED]> wrote:
> Trying to compile the sample programs in the wxHaskell package, I received
> several compiler error messages:
>
> [...]\Haskell\GUI\wxhaskell\wxhaskell-0.10.3\samples\wx> for %a in (*.hs)
> do ghc --make %a
> [...]
> C:\Documents and Settings\Henk-Jan\Mijn
> documenten\SoftwareOntwikkeling\Haskell\GUI\wxhaskell\wxhaskell-0.10.3\samples\wx>ghc
> --make TimeFlowsEx.hs
> [1 of 1] Compiling Main             ( TimeFlowsEx.hs, TimeFlowsEx.o )
>
> TimeFlowsEx.hs:113:14:
>      Couldn't match expected type `CDialog ()'
>             against inferred type `CPanel p'
>        Expected type: Attr (Dialog ()) a
>        Inferred type: Attr (Panel p) (Button ())
>      In the first argument of `(:=)', namely `defaultButton'
>      In the expression: defaultButton := ok
>
>
> [...]\Haskell\GUI\wxhaskell\wxhaskell-0.10.3\samples\wxcore>for %a in
> (*.hs) do ghc --make %a
>
> [...]
> [...]\Haskell\GUI\wxhaskell\wxhaskell-0.10.3\samples\wxcore>ghc --make
> ByeDemo.hs
> [1 of 1] Compiling Main             ( ByeDemo.hs, ByeDemo.o )
>
> ByeDemo.hs:36:7: Not in scope: `topLevelWindowSetDefaultItem'
> [...]
> [...]\Haskell\GUI\wxhaskell\wxhaskell-0.10.3\samples\wxcore>ghc --make
> ImageViewer.hs
> [1 of 1] Compiling Main             ( ImageViewer.hs, ImageViewer.o )
>
> ImageViewer.hs:40:7: Not in scope: `topLevelWindowSetIconFromFile'


I missed push this change when building GHC 6.8.3's wxhaskell 0.10.3 binary
distribution.

http://code.haskell.org/wxhaskell/_darcs/patches/20080429145931-c1071-b06747db78819af53a2ee64a0d344acf158e9041.gz

So, you can fix sample programs' problem by undoing this change or using
wxhaskell-src-0.10.3.zip's sample.


Best Regards,

-- 
shelarcy <shelarcy    hotmail.co.jp>
http://page.freett.com/shelarcy/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel

Reply via email to