You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(12) |
Aug
(34) |
Sep
(14) |
Oct
(36) |
Nov
(32) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
(9) |
Mar
(31) |
Apr
(36) |
May
(17) |
Jun
(21) |
Jul
(13) |
Aug
(18) |
Sep
(2) |
Oct
(10) |
Nov
(18) |
Dec
(28) |
2005 |
Jan
(26) |
Feb
(15) |
Mar
(26) |
Apr
(11) |
May
(60) |
Jun
(3) |
Jul
(12) |
Aug
(4) |
Sep
(12) |
Oct
(19) |
Nov
(36) |
Dec
(10) |
2006 |
Jan
(6) |
Feb
(13) |
Mar
(6) |
Apr
(2) |
May
(9) |
Jun
(3) |
Jul
(6) |
Aug
(13) |
Sep
(1) |
Oct
(24) |
Nov
(33) |
Dec
(47) |
2007 |
Jan
(21) |
Feb
(41) |
Mar
(17) |
Apr
(9) |
May
(4) |
Jun
(20) |
Jul
(24) |
Aug
(71) |
Sep
(35) |
Oct
(10) |
Nov
(39) |
Dec
(39) |
2008 |
Jan
(24) |
Feb
(42) |
Mar
(61) |
Apr
(12) |
May
(11) |
Jun
(4) |
Jul
(9) |
Aug
(6) |
Sep
(6) |
Oct
(4) |
Nov
(3) |
Dec
(14) |
2009 |
Jan
(25) |
Feb
(18) |
Mar
(19) |
Apr
(24) |
May
(14) |
Jun
(7) |
Jul
(14) |
Aug
(25) |
Sep
(40) |
Oct
(20) |
Nov
(22) |
Dec
(4) |
2010 |
Jan
(55) |
Feb
(11) |
Mar
(9) |
Apr
(10) |
May
(10) |
Jun
(9) |
Jul
(7) |
Aug
(4) |
Sep
(15) |
Oct
(7) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(2) |
Feb
(1) |
Mar
(4) |
Apr
(6) |
May
(20) |
Jun
(30) |
Jul
(15) |
Aug
(4) |
Sep
(23) |
Oct
(24) |
Nov
(3) |
Dec
(8) |
2012 |
Jan
(23) |
Feb
(7) |
Mar
(19) |
Apr
(48) |
May
(8) |
Jun
(27) |
Jul
(10) |
Aug
(1) |
Sep
(11) |
Oct
(1) |
Nov
|
Dec
(3) |
2013 |
Jan
(1) |
Feb
|
Mar
(17) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(12) |
Sep
(2) |
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
|
Feb
|
Mar
(14) |
Apr
(5) |
May
(1) |
Jun
|
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
(2) |
Dec
(1) |
2016 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: shelarcy <she...@ca...> - 2005-01-13 13:21:25
|
> > Loading package readline ... linking ... > > C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' > > ghc.exe: unable to load package `readline' > > You use ghc 6.2.2, but the binary wxHaskell is for ghc 6.2.1. The new > accidentally includes readline in the util package, but readline does > not work on windows. So, you need to either: > > - easy: get ghc-6.2.1 and use wxHaskell with that > - moderate: get the latest wxHaskell from cvs and build it yourself with > ghc-6.2.2 (doable if you follow the build instructions *exactly*) But cvs-version has many probrem that build on Visual Studio .NET 2003 (VC 7.1). On Fri, 03 Dec 2004 02:29:56 +0900, shelarcy <she...@ca...> wrote: > CVS version what using wxWidget that compiled by VisualStudio.Net 2003; > In wxWidget-2.5.3, program terminate as soon as program start. > In wxWidget-2.4.2, program notice error as soon as program start. (Visual Studio notice error !) Current Version developed on VC6, then CVS version doen't fix VC 7,1's problem. (VC 7.1 supplied for VC7 user by Microsoft (without Academic version user), so you don't care about VC7.) -- shelarcy <shelarcy capella.freemail.ne.jp> http://page.freett.com/shelarcy/ |
From: Daan L. <da...@cs...> - 2005-01-13 11:12:53
|
Hi Dmitri, First of all, read the documentation that comes with wxHaskell, in particular the "quick start" guide. > When I try to compile the program with GHC, I also get an error: > > GuiTest2.hs:1: > Failed to load interface for `Graphics.UI.WX': > Could not find interface file for `Graphics.UI.WX' > (use -v to see a list of the files searched for) As said in the guide, you need to give the "-package wx" option to ghc (and ghci too). The other problem: > Loading package readline ... linking ... > C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' > ghc.exe: unable to load package `readline' You use ghc 6.2.2, but the binary wxHaskell is for ghc 6.2.1. The new accidentally includes readline in the util package, but readline does not work on windows. So, you need to either: - easy: get ghc-6.2.1 and use wxHaskell with that - moderate: get the latest wxHaskell from cvs and build it yourself with ghc-6.2.2 (doable if you follow the build instructions *exactly*) I hope this helps, -- Daan. |
From: Dmitri P. <mai...@da...> - 2005-01-12 19:39:20
|
Hello! When I try to compile the program with GHC, I also get an error: GuiTest2.hs:1: Failed to load interface for `Graphics.UI.WX': Could not find interface file for `Graphics.UI.WX' (use -v to see a list of the files searched for) Verbose list of packages searched is given in the attachment. Perhaps some library definition is wrong. I appreciate any hint concerning making the program compile. TIA Dmitri Pissarenko |
From: Dmitri P. <mai...@da...> - 2005-01-12 18:44:18
|
Hello! Thanks for your answer! I've tried to launch GHCi with your program. I'm getting the same error message. What else could be the reason for the problem? TIA Dmitri Pissarenko -- Dmitri Pissarenko Software Engineer http://dapissarenko.com |
From: Sebastian S. <seb...@gm...> - 2005-01-12 16:25:20
|
On Wed, 12 Jan 2005 16:54:18 +0100, Dmitri Pissarenko <mai...@da...> wrote: > GHCi crashed with following error messages: > <snip> > 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 () > -- Although I'm not sure if it's related to your problem, you probably don't want to work with the low-level "core" wx functionality. Something like this might work (just off the top of my head, not tested): import Graphics.UI.WX main = start gui gui = do f <- frame [text := "Hello World", resizable := True] b <- button f [ text := "Quit", on command := close f] set f [layout := column 5 [label "A Button: ", widget b]] -- Sebastian Sylvan +46(0)736-818655 UIN: 44640862 |
From: Dmitri P. <mai...@da...> - 2005-01-12 15:54:25
|
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 |
From: shelarcy <she...@ca...> - 2005-01-12 13:36:06
|
Hmm, Keeping my eyes on this discussion, I have to chage my sample code. So I chage the sample following Patrick Scheibe sample. Here is a newer version. On Tue, 11 Jan 2005 12:15:38 +0100, Daan Leijen <da...@cs...> wrote: >> A friend of mine helped me solving the problem. >> It was really confusing. I just added any printouts in the display >> function of opengl and found out that wxhaskell called this display >> func. But why should it be called and even though nothing appeared in >> the frame. > > Ah, this is really good to hear, > I have been playing with the sample but couldn't find > a solution myself. > > Good luck with your further experiments, -- shelarcy <shelarcy capella.freemail.ne.jp> http://page.freett.com/shelarcy/ |
From: Daan L. <da...@cs...> - 2005-01-11 11:15:49
|
Patrick Scheibe wrote: > Hi, > > A friend of mine helped me solving the problem. > It was really confusing. I just added any printouts in the display function of > opengl and found out that wxhaskell called this display func. But why should > it be called and even though nothing appeared in the frame. Ah, this is really good to hear, I have been playing with the sample but couldn't find a solution myself. Good luck with your further experiments, -- Daan. > > We figured out that it is probably the best way to have a look at the GTK > opengl sample. So we changed some lines in the source relating to the c++ > sample code. > I won't have time to find some more out but here is the modified sample that > runs on our machines.. (mainly for Mike who wants the news) > > It shows just a white square on a black background. Compilation with > ghc -package wx -package OpenGL foobar.hs > > Cheers > Patrick > > > module Main > where > import Graphics.Rendering.OpenGL > import qualified Graphics.UI.WX as WX > import qualified Graphics.Rendering.OpenGL as GL > > main = start gui > > convWG (WX.Size w h) = (GL.Size (convInt32 w) (convInt32 h)) > convInt32 = fromInteger . toInteger > > gui = do > f <- frame [ text := "Simple OpenGL" ] > glCanvas <- glCanvasCreateEx f 0 (Rect 0 0 200 200) > 0 "GLCanvas" [GL_RGBA] nullPalette > initme glCanvas > let glWidgetLayout = (fill . widget) glCanvas > WX.set f [ on paintRaw := paintGL glCanvas > , layout := glWidgetLayout > ] > > paintGL :: GLCanvas a -> DC() -> WX.Rect -> [WX.Rect] -> IO () > paintGL canvas dc rect _ = do > reshape $ convWG $ rectSize rect > display canvas > > return () > > initme :: GLCanvas a -> IO () > initme canvas = do > glCanvasSetCurrent canvas > > display canvas = do > clear [ ColorBuffer] > preservingMatrix $ do > stdQuad > putStrLn "Display" > flush > glCanvasSwapBuffers canvas > > > reshape size@(GL.Size w h) = do > viewport $= (Position 0 0, size) > matrixMode $= Projection > loadIdentity > let wf = fromIntegral w > hf = fromIntegral h > if w <= h > then ortho (-4.0) 4.0 (-4.0*hf/wf) (4.0*hf/wf) (-4.0) 4.0 > else ortho (-4.0*wf/hf) (4.0*wf/hf) (-4.0) 4.0 (-4.0) 4.0 > matrixMode $= Modelview 0 > loadIdentity > > vertex3f :: Vertex3 GLfloat -> IO () > vertex3f = vertex :: Vertex3 GLfloat -> IO () > > stdQuad :: IO () > stdQuad = do > renderPrimitive Polygon $ mapM_ vertex3f [ > Vertex3 0 0 0, > Vertex3 0 1 0, > Vertex3 1 1 0, > Vertex3 1 0 0 > ] > > > > > > On Tuesday 04 January 2005 19:58, Mike Gunter wrote: > >>Too bad. Do let me know if you figure this out. >> >> thanks, >> mike >> >>Patrick Scheibe <mai...@st...> writes: >> >>>Hi, >>> >>>I try to run the GLCanvas sample from the source of wxHaskell and the >>>only thing I get is a blank screen. Mike said I should try to recompile >>>all stuff (wxGTK and wxHaskell) with the --with-opengl option. >>>But this was what I did in the first time. The opengl sample in the wxGTK >>>source (penguin and so on) runs perfectly. >>>I can compile wxHaskell with opengl without any error. >>>But the sample shows just the blank screen. >>> >>>I figured out that it doesn't matter when I don't give the -package >>>OpenGL option to ghc. The sample compiles without error and runs in the >>>same way. Does wxHaskell add the Gl libs itself? >>> >>>Has anybody a compiled wxhaskell where this sample runs and can he help >>>me by showing his configuration of ghc, gtk, wxgkt, glib, wxhaskell, ... >>>I have a running SuSe distribution. >>> >>>Cheers >>>Patrick >>> >>>On Monday 03 January 2005 19:50, Mike Gunter wrote: >>> >>>>I was seeing the same behavior. Responding to my question, Sean >>>>Seefried pointed out that both wxWidgets and wxHaskell must be built >>>>with OpenGL support (by passing --with-opengl to their configure >>>>scripts). I haven't had time to determine if that's the issue for me. >>>>Perhaps it is for you? (If you do figure out why you're seeing the >>>>behavior you are, please let me know ...) >>>> >>>> mike > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > > > |
From: Patrick S. <mai...@st...> - 2005-01-11 00:35:03
|
Hi, A friend of mine helped me solving the problem. It was really confusing. I just added any printouts in the display function of opengl and found out that wxhaskell called this display func. But why should it be called and even though nothing appeared in the frame. We figured out that it is probably the best way to have a look at the GTK opengl sample. So we changed some lines in the source relating to the c++ sample code. I won't have time to find some more out but here is the modified sample that runs on our machines.. (mainly for Mike who wants the news) It shows just a white square on a black background. Compilation with ghc -package wx -package OpenGL foobar.hs Cheers Patrick module Main where import Graphics.Rendering.OpenGL import qualified Graphics.UI.WX as WX import qualified Graphics.Rendering.OpenGL as GL main = start gui convWG (WX.Size w h) = (GL.Size (convInt32 w) (convInt32 h)) convInt32 = fromInteger . toInteger gui = do f <- frame [ text := "Simple OpenGL" ] glCanvas <- glCanvasCreateEx f 0 (Rect 0 0 200 200) 0 "GLCanvas" [GL_RGBA] nullPalette initme glCanvas let glWidgetLayout = (fill . widget) glCanvas WX.set f [ on paintRaw := paintGL glCanvas , layout := glWidgetLayout ] paintGL :: GLCanvas a -> DC() -> WX.Rect -> [WX.Rect] -> IO () paintGL canvas dc rect _ = do reshape $ convWG $ rectSize rect display canvas return () initme :: GLCanvas a -> IO () initme canvas = do glCanvasSetCurrent canvas display canvas = do clear [ ColorBuffer] preservingMatrix $ do stdQuad putStrLn "Display" flush glCanvasSwapBuffers canvas reshape size@(GL.Size w h) = do viewport $= (Position 0 0, size) matrixMode $= Projection loadIdentity let wf = fromIntegral w hf = fromIntegral h if w <= h then ortho (-4.0) 4.0 (-4.0*hf/wf) (4.0*hf/wf) (-4.0) 4.0 else ortho (-4.0*wf/hf) (4.0*wf/hf) (-4.0) 4.0 (-4.0) 4.0 matrixMode $= Modelview 0 loadIdentity vertex3f :: Vertex3 GLfloat -> IO () vertex3f = vertex :: Vertex3 GLfloat -> IO () stdQuad :: IO () stdQuad = do renderPrimitive Polygon $ mapM_ vertex3f [ Vertex3 0 0 0, Vertex3 0 1 0, Vertex3 1 1 0, Vertex3 1 0 0 ] On Tuesday 04 January 2005 19:58, Mike Gunter wrote: > Too bad. Do let me know if you figure this out. > > thanks, > mike > > Patrick Scheibe <mai...@st...> writes: > > Hi, > > > > I try to run the GLCanvas sample from the source of wxHaskell and the > > only thing I get is a blank screen. Mike said I should try to recompile > > all stuff (wxGTK and wxHaskell) with the --with-opengl option. > > But this was what I did in the first time. The opengl sample in the wxGTK > > source (penguin and so on) runs perfectly. > > I can compile wxHaskell with opengl without any error. > > But the sample shows just the blank screen. > > > > I figured out that it doesn't matter when I don't give the -package > > OpenGL option to ghc. The sample compiles without error and runs in the > > same way. Does wxHaskell add the Gl libs itself? > > > > Has anybody a compiled wxhaskell where this sample runs and can he help > > me by showing his configuration of ghc, gtk, wxgkt, glib, wxhaskell, ... > > I have a running SuSe distribution. > > > > Cheers > > Patrick > > > > On Monday 03 January 2005 19:50, Mike Gunter wrote: > >> I was seeing the same behavior. Responding to my question, Sean > >> Seefried pointed out that both wxWidgets and wxHaskell must be built > >> with OpenGL support (by passing --with-opengl to their configure > >> scripts). I haven't had time to determine if that's the issue for me. > >> Perhaps it is for you? (If you do figure out why you're seeing the > >> behavior you are, please let me know ...) > >> > >> mike |
From: Arjan v. I. <af...@cs...> - 2005-01-09 11:01:19
|
> When I call repaint, the window isn't actually repainted until I cover > my application's window with another window and then bring my > application to the foreground again. Does the bouncing balls demo work? It uses repaint to repaint a window in a timer. If that demo does work maybe you can see from the source code why your code is not working. Cheers, Arjan |
From: Kirsten C. <cat...@gm...> - 2005-01-08 22:08:46
|
Hi, When I call repaint, the window isn't actually repainted until I cover my application's window with another window and then bring my application to the foreground again. I have code in my mouse event handler that calls repaint, so I would expect the window to be repainted as soon as the user clicks the mouse, not after the window is brought to the background and then the foreground. Is this a bug? I'm using wxHaskell 0.8 and ghc 6.2.1 on Fedora Core 1. Thanks, Kirsten -- Kirsten Chevalier * che...@al... * Often in error, never in doubt |
From: James H. IV <hun...@gm...> - 2005-01-05 07:24:45
|
Hello, The following functions differ on the types for storing data in a TreeItem: treeCtrlAddRoot uses TreeItemData treeCtrlAppendItem uses TreeItemData treeCtrlGetItemData uses Ptr () treeCtrlInsertItem uses Ptr g treeCtrlInsertItemByIndex uses Ptr g treeCtrlPrependItem uses Ptr f treeCtrlSetItemData uses Ptr c Why does the first two use TreeItemData while the rest use Ptr? Why is result of treeCtrlGetItemData Ptr ()? Also, how do I store something in either case? Thanks. |
From: Patrick S. <mai...@st...> - 2005-01-04 13:17:12
|
Hi, I try to run the GLCanvas sample from the source of wxHaskell and the only thing I get is a blank screen. Mike said I should try to recompile all stuff (wxGTK and wxHaskell) with the --with-opengl option. But this was what I did in the first time. The opengl sample in the wxGTK source (penguin and so on) runs perfectly. I can compile wxHaskell with opengl without any error. But the sample shows just the blank screen. I figured out that it doesn't matter when I don't give the -package OpenGL option to ghc. The sample compiles without error and runs in the same way. Does wxHaskell add the Gl libs itself? Has anybody a compiled wxhaskell where this sample runs and can he help me by showing his configuration of ghc, gtk, wxgkt, glib, wxhaskell, ... I have a running SuSe distribution. Cheers Patrick On Monday 03 January 2005 19:50, Mike Gunter wrote: > I was seeing the same behavior. Responding to my question, Sean > Seefried pointed out that both wxWidgets and wxHaskell must be built > with OpenGL support (by passing --with-opengl to their configure > scripts). I haven't had time to determine if that's the issue for me. > Perhaps it is for you? (If you do figure out why you're seeing the > behavior you are, please let me know ...) > > mike |
From: Mike G. <m...@ry...> - 2005-01-03 18:50:30
|
I was seeing the same behavior. Responding to my question, Sean Seefried pointed out that both wxWidgets and wxHaskell must be built with OpenGL support (by passing --with-opengl to their configure scripts). I haven't had time to determine if that's the issue for me. Perhaps it is for you? (If you do figure out why you're seeing the behavior you are, please let me know ...) mike |
From: Lemmih <le...@gm...> - 2005-01-03 09:56:53
|
Hello jeff. From the wxHaskell webpage about installing binary packages: "Make sure that you have the same version of the compiler installed, for example ghc6.2.1." A haskell library compiled for GHC 6.2.1 will not work with GHC 6.2.2. You can either downgrade your GHC installation or compile wxHaskell from source. On Mon, 3 Jan 2005 20:42:46 +1100, jeff lasslett <m4d...@gm...> wrote: > Hello, > > I am trying to load and run a wxHaskell sample program but I'm not > having much success. > I am using ghc 6.2.2 on windows XP service pack 2. I have wxHaskell > 0.8 installed and registered. The package seems to load up when I > start ghci with -package wx (as showm below). The trouble is that I > can't load my wxHaskell sample. I get the following message > > Compiling Main ( d:\users\jeff\src\haskell_tute\hello.hs, interprete > d ) > > d:\users\jeff\src\haskell_tute\hello.hs:2: > Failed to load interface for `Graphics.UI.WX': > Bad interface file: D:\libraries\wxhaskell-0.8\lib/imports/Graphics/UI/W > X.hi > mismatched interface file versions: expected 6022, found 6021 > Failed, modules loaded: none. > > I've tried editing the WX.hi file with gvim in hex mode, but that just > leaves me with a corrupted WX.hi file. > > What do I do? > > Thanks in advance, > > Jeff Lasslett > > PS: Below is a full transript of the ghci session. > ___ ___ _ > / _ \ /\ /\/ __(_) > / /_\// /_/ / / | | 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 ... done. > Loading package util ... linking ... done. > Loading package data ... linking ... done. > Loading package wxcore ... linking ... done. > Loading package wx ... linking ... done. > Prelude> :load d:\users\jeff\src\haskell_tute\hello.hs > Compiling Main ( d:\users\jeff\src\haskell_tute\hello.hs, interprete > d ) > > d:\users\jeff\src\haskell_tute\hello.hs:2: > Failed to load interface for `Graphics.UI.WX': > Bad interface file: D:\libraries\wxhaskell-0.8\lib/imports/Graphics/UI/W > X.hi > mismatched interface file versions: expected 6022, found 6021 > Failed, modules loaded: none. > Prelude> > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > -- Friendly, Lemmih |
From: jeff l. <m4d...@gm...> - 2005-01-03 09:42:52
|
Hello, I am trying to load and run a wxHaskell sample program but I'm not having much success. I am using ghc 6.2.2 on windows XP service pack 2. I have wxHaskell 0.8 installed and registered. The package seems to load up when I start ghci with -package wx (as showm below). The trouble is that I can't load my wxHaskell sample. I get the following message Compiling Main ( d:\users\jeff\src\haskell_tute\hello.hs, interprete d ) d:\users\jeff\src\haskell_tute\hello.hs:2: Failed to load interface for `Graphics.UI.WX': Bad interface file: D:\libraries\wxhaskell-0.8\lib/imports/Graphics/UI/W X.hi mismatched interface file versions: expected 6022, found 6021 Failed, modules loaded: none. I've tried editing the WX.hi file with gvim in hex mode, but that just leaves me with a corrupted WX.hi file. What do I do? Thanks in advance, Jeff Lasslett PS: Below is a full transript of the ghci session. ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | 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 ... done. Loading package util ... linking ... done. Loading package data ... linking ... done. Loading package wxcore ... linking ... done. Loading package wx ... linking ... done. Prelude> :load d:\users\jeff\src\haskell_tute\hello.hs Compiling Main ( d:\users\jeff\src\haskell_tute\hello.hs, interprete d ) d:\users\jeff\src\haskell_tute\hello.hs:2: Failed to load interface for `Graphics.UI.WX': Bad interface file: D:\libraries\wxhaskell-0.8\lib/imports/Graphics/UI/W X.hi mismatched interface file versions: expected 6022, found 6021 Failed, modules loaded: none. Prelude> |
From: Patrick S. <mai...@st...> - 2005-01-01 12:59:21
|
Hi there, I try to get the opengl sample in the source (/sample/contrib/GLCanvas.hs) running without luck. There are no errors but the screen stays white. I use ghc 6.2.1 and the wxhaskell from the cvs, but I think that doesn't matter because the stable version shows the same effect. It would be a great help if anyone has a small working sample and can send me this. Cheers Patrick |
From: John V. <ve...@co...> - 2004-12-18 09:46:24
|
In August Clause Reinke posted a question about postscript device contexts. No answer seems to appear in the archives. I also have this question. Is the answer obvious? (I once had a math professor who would say "This is obvious. But it's not quite clear why it's obvious.) Being new to both Haskell and wxWindows, I could use a little help! Thanks, John Velman |
From: pablo p. <par...@ya...> - 2004-12-13 10:12:05
|
First of all, my english's very poor, sorry. I wanted to know if there is any form to transform what you paint in a panel to an image you can save. I want to use the functions to draw rectangles, which draw them in a panel, instead of using the functions that paint pixel to pixel. picture :: Window a -> Var Color -> Var Color -> Var Color -> Var Color -> Var Color -> Var Int -> Var Int -> Var Int -> Var Int -> Var Int -> IO () picture w cl1 cl2 cl3 cl4 current alt anc num altr ancr ... let rgbSize = sz an al im <- imageCreateSized rgbSize imv <- varCreate im bim <- bitmapCreateDefault bimv <- varCreate bim ... guardar <- button f [text := "Guardar",on command :=do imagen <-varGet imv; salvarimagen f imagen] ... p <- panel f [clientSize := sz an al] ... set p [on paint := pintarect imv bimv var] where pintarect imv bimv var dc viewArea = do v <- varGet var ... randomcolours cl1 cl2 cl3 cl4 current curre <- varGet current drawRect dc (Rect 6 44 100 50) [penWidth := 6, brushColor := curre] bim <- bitmapCreateDefault dcDrawBitmap dc bim pointZero True if (v==0) then do varSet bimv bim im <- imageCreateFromBitmap bim print v varSet imv im varSet var 1 else do print v bim <- varGet bimv drawBitmap dc bim pointZero True [] return () salvarimagen :: Dialog a -> Image a -> IO () --This is the dialog for saving the image Well, the code of pintarect is with print and other things to help me debugging. The function is supposed to draw random pictures, it's called with variables which will change in pintarect, I want they keep the same the next events of paint, but everytime there is an event of paint, the colours change. Other problem is when I save the file, it's always empty, I suppose it's because dcDrawBitmap doesn´t convert the dc to a bitmap, the name confused me. Is there any form to paint in the dc and save that to a file??? Thanks. ______________________________________________ Renovamos el Correo Yahoo!: ¡250 MB GRATIS! Nuevos servicios, más seguridad http://correo.yahoo.es |
From: Mark W. <mwa...@bi...> - 2004-12-11 07:32:01
|
Hi, I'm having a problem with the database access functionality.=20 If I do: *Main> do info <- dbGetDataSourceInfo "mysql" "root" "root"; print info I get: *** Exception: user error (Database error: DbError {dbErrorMsg =3D "", = dbDataSource =3D "mysql", dbErrorCode =3D DB_FAILURE, dbNativeCode =3D = 0, dbSqlState =3D ""}) *Main>=20 I have an excel datasource which returns the same error. I can access the same MySQL ODBC datasource with the same userid and = password using Ruby. I'm using 0.8. =20 Cheers Mark |
From: Wolfgang T. <wol...@gm...> - 2004-12-10 21:06:02
|
Hi! I just found out that Mac OS 10.3 ("Panther") and later support an official way for a background-only process to become a GUI process. Attached is a new version of my EnableGUI.hs module which uses the new functions. This should now be future-proof - I suggest to include it in wxHaskell and automatically invoke it from start, so that people don't need to worry about this any more. Of course, this doesn't mean that you don't need .app wrappers any more. They're still necessary once you want your application to have a nice double-clickable custom-designed icon, or to associate document types with it. Note that it won't link or run on older Mac OS X versions (e.g. 10.2 "Jaguar"). Cheers, Wolfgang |
From: Arjan v. I. <af...@cs...> - 2004-12-09 14:10:27
|
Hello all, In our Bayesian network editor Dazzle with a wxHaskell GUI there were two places where we needed to maintain a document that can be saved to disk. And we wanted to have undo (and redo) in both places. Of course, we didn't want to write this functionality twice. After factoring out the common parts the library is so general that it might be useful for others writing editors, too. The library takes care of maintaining a document, keeping track of whether it is dirty (changed w.r.t. disk version), providing save and save as functionality, enabling and disabling menu items, updating the title bar, warning if you try to close a document that is "dirty", dealing with unlimited undo/redo and more. The reason for combining undo/redo and file management is because there is interaction between them. For example, when you save a file, the versions of the document in the undo and redo buffers become "dirty". All in all, it is quite subtle code that you don't want to write time after time. If you are writing some kind of editor and are interested in using the library, check out the (heavily documented) source code at: http://www.cs.uu.nl/~afie/pd09122004.zip The zip contains three files: 1) PersistentDocument.hs: the implementation of what is described above. This module is not dependent on wxHaskell by the way. 2) PDDefaults.hs: default implementations of the call-back functions in wxHaskell 3) PDDemo.hs: a demo application allowing you to edit a list of strings. It uses the two other files and thus supports undo/redo and cool file management for "free". In the demo file you can see how to start it. If you have suggestions for better names, need functions that are not in the interface or you have any other comment, send it to wxh...@li... At some point this functionality will be added to the wxHaskell distribution. However, I first want to let other people have a look at it and process their comments. Have fun, Arjan PS: If you want to see what our Dazzle editor looks like, go to http://www.cs.uu.nl/dazzle/ |
From: John V. <ve...@co...> - 2004-12-09 04:04:02
|
I'm not a tcl/TK expert, but I know a little. I'm trying to build an application where I draw text with a box around it at (initially radomized) places in a window. Each item has an ID displayed, as well as the text itself. I'd like to be able to refer to a particular item by means of the ID, in a text entry box, in order to move it, attach something to it, and so on. In perlTK, when I did something like this: create a text item at a randomized location create a box around it tag both of them with the same ID. ... I'm obviosly new to wxHaskell, (and new to Haskell.) Can someone point me toward documentation or examples along these lines? Best, John Velman |
From: Kirsten C. <cat...@gm...> - 2004-12-08 15:41:13
|
On Wed, 08 Dec 2004 12:26:14 +0100, Daan Leijen <da...@cs...> wrote: > Hi Kirsten, > > Kirsten Chevalier wrote: > > Hi, > > http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.WxcClassesAL.html#v%3AbitmapCreate > > mentions a function called bitmapCreate, which doesn't seem to > > actually exist in the released version of wxHaskell > > Do you mean that you get link errors? > No, I mean GHC actually reports that it's an unbound variable. > In a future wxHaskell, I will add support for the wxHTTP class, and the > wxInputStream's. Using that, you will be able to read a (JPEG) image > directly from an HTTP inputstream. > Ok, good -- that would be useful for me. Thanks, Kirsten -- Kirsten Chevalier * che...@al... * Often in error, never in doubt |
From: Daan L. <da...@cs...> - 2004-12-08 11:26:22
|
Hi Kirsten, Kirsten Chevalier wrote: > Hi, > http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.WxcClassesAL.html#v%3AbitmapCreate > mentions a function called bitmapCreate, which doesn't seem to > actually exist in the released version of wxHaskell Do you mean that you get link errors? Anyhow, if you do things with images, you are normally better of to use the wxImage class. Images are platform and format independent while bitmaps uses a highly plarform dependent representation and using bitmapCreate is therefore not recommended. > All I'm trying to do is read some data > representing a JPEG over a network socket (http) and convert that to > an image that my wxHaskell program can display. Currently I'm doing > this by invoking wget through system() and creating temporary files, > which, of course, is expensive. Is there an easy way to do this using > the current version of wxHaskell? The best way to do this in the current version of wxHaskell is to write to file indeed, and to read from the file using imageCreateFromFile. In a future wxHaskell, I will add support for the wxHTTP class, and the wxInputStream's. Using that, you will be able to read a (JPEG) image directly from an HTTP inputstream. I hope this helps, -- Daan. > > Thanks, > Kirsten > |