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: <mac...@gm...> - 2010-12-02 14:25:09
|
Hi, On my system (Ubuntu Maverick with haskell-platform 2010.1.0.0.1) 'cabal install wx' results in the following: Configuring wxcore-0.12.1.6... setup: Missing dependencies on foreign libraries: * Missing C libraries: wx_baseu-2.8, wx_baseu_net-2.8, wx_baseu_xml-2.8, wx_gtk2u_core-2.8, wx_gtk2u_adv-2.8, wx_gtk2u_html-2.8, wx_gtk2u_qa-2.8, wx_gtk2u_xrc-2.8, wx_gtk2u_aui-2.8, wx_gtk2u_richtext-2.8 This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are. cabal: Error: some packages failed to install: wx-0.12.1.6 depends on wxcore-0.12.1.6 which failed to install. wxcore-0.12.1.6 failed during the configure step. The exception was: ExitFailure 1 However: mmakowski@tallis:~/temp/wxcore-0.12.1.6$ ls -1 /usr/lib/libwx_*.so /usr/lib/libwx_baseu-2.8.so /usr/lib/libwx_baseu_net-2.8.so /usr/lib/libwx_baseu_xml-2.8.so /usr/lib/libwx_gtk2u_adv-2.8.so /usr/lib/libwx_gtk2u_aui-2.8.so /usr/lib/libwx_gtk2u_core-2.8.so /usr/lib/libwx_gtk2u_fl-2.8.so /usr/lib/libwx_gtk2u_gizmos-2.8.so /usr/lib/libwx_gtk2u_gizmos_xrc-2.8.so /usr/lib/libwx_gtk2u_gl-2.8.so /usr/lib/libwx_gtk2u_html-2.8.so /usr/lib/libwx_gtk2u_ogl-2.8.so /usr/lib/libwx_gtk2u_plot-2.8.so /usr/lib/libwx_gtk2u_qa-2.8.so /usr/lib/libwx_gtk2u_richtext-2.8.so /usr/lib/libwx_gtk2u_stc-2.8.so /usr/lib/libwx_gtk2u_svg-2.8.so /usr/lib/libwx_gtk2u_xrc-2.8.so Any idea what I'm doing wrong or how I can diagnose this further? It's my first attempt to use cabal so apologies if I missed something obvious. Thanks, Maciek |
From: <E....@br...> - 2010-11-23 15:29:54
|
Hi all, In case my attempt at playing switchboard helps a little... On Sun, Sep 19, 2010 at 21:15:26 +0200, S. Doaitse Swierstra wrote: > In trying to get a working wx on my Snow leopard Mac I think I managed to throw away all traces of macport remains, and installed a clean GHC 6.12, a clean wx, wxcore etc. Now the website says that I still need this macosx-app, which is bundled in the binary installers, but which these have been discontinued. I can't find the templates however in the source files which I need to build this macosx-app myself. So I have the following questions: > > - do I still need macosx-app (my impression is: yes), and if so how can I get one > - what is the role of the cabal-macosx > - is the wxhaskell wiki uptodate; > my impression is that it is not describing the actual situation anymore with respect to the questions above If I understand correctly, macosx-app got accidentally lost in the recent cabalisation cleanup, and nobody picked up the pieces. If I understand correctly, cabal-macosx does the same job but for cabalised programs (you can even cabal install cabal-macosx) Andy: 1. Is cabal-macosx ready to become the standard tool for wxHaskell users to create application bundles for their applications? 2. Perhaps you could roll a quickie macosx-app replacement tool for people with one-off toy GUIs that don't want to go through the trouble of using Cabal? Thanks! -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> For a faster response, try +44 (0)1273 64 2905 or xmpp:ko...@ja... (Jabber or Google Talk only) |
From: Jeremy O'D. <jer...@gm...> - 2010-11-02 11:10:32
|
Hi James, On 29 October 2010 05:06, James d'Arcy <jam...@wr...> wrote: > Conceptually what I want to do is create items in the ListCtrl and > associate a > unique identifier with each item. This identifier would not be displayed in > the > UI. An Int64 would be ideal but a String would be fine. When a user clicks > on > the item, I want to be able to retrieve this identifier and use it to find > the > associated data, in this case a database record. > > The items are inserted into the ListCtrl ok with the following code: > > showStudy :: ListCtrl l -> (Int,DicomStudy) -> IO () > showStudy wgDbTable (idx,dcmStudy) = do > listCtrlInsertItemWithData wgDbTable idx $ studyUid dcmStudy > set wgDbTable [item idx := [(patientName . studyPatient) dcmStudy, > studyDescription dcmStudy, > studyDate dcmStudy]] > > and the event handler looks like this: > > onDbTableEvent :: HasturContext -> EventList -> IO () > onDbTableEvent HasturCtx {guiDbTable=wgDbTable, guiSeriesList=wgSeriesList} > event = > case event of > ListItemSelected idx -> do > studyUid <- listCtrlGetItemData wgSeriesList idx > infoM "Hastur" $ "DB Table event: " ++ show studyUid > propagateEvent > otherwise -> > propagateEvent > > When the user clicks on the ListCtrl item I get an error dialog pop up > saying: > > "Couldn't retrieve information about list control item X" > > where X is idx. The infoM call produces: > > "DB Table event: 0" > > What am I missing? I've tried listCtrl{Get/Set}Data, listCtrl{Get/Set}Text > all > with the same result. listCtrlDeleteItem in the event handler doesn't > delete the > item but produces the result: False. > > showStudy wgDbTable (idx,dcmStudy) = do listCtrlInsertItemWithData wgDbTable idx $ studyUid dcmStudy set wgDbTable [item idx := [(patientName . studyPatient) dcmStudy, studyDescription dcmStudy, studyDate dcmStudy]] I suspect that the problem comes from mixing WXCore and WX functionality (highlighted in red above if you are using an HTML mailer - otherwise look at the . I doubt that it is safe to do this. Below is an example I have tested. I've tried to make it as simple as possible, so it has a fixed list of (displayed) items, each of which has an Integer key (which is not displayed - it is stored as a data item). I'll write it up more fully in my blog (http://wewantarock.wordpress.com) shortly, but for the moment, just note that I am using the WXCore functions to insert the item data and the displayed contents. module Main () where import Graphics.UI.WXCore import Graphics.UI.WX -- Int data and strings for each column entries = [ (100, ["BouncingBalls.hs" ,"2402" ,"Jul 19 16:50"]) , (101, ["ByeDemo.hs" ,"1414" ,"Jul 13 23:18"]) , (102, ["Camels.hs" ,"7633" ,"Aug 20 11:57"]) , (103, ["Controls.hs" ,"3862" ,"Aug 20 11:57"]) , (104, ["HelloWorld.hs" ,"1028" ,"Aug 15 10:09"]) , (105, ["ImageViewer.hs" ,"3756" ,"Aug 20 11:57"]) , (106, ["Layout.hs" ,"1075" ,"Jul 13 23:18"]) , (107, ["ListCtrl.hs" ,"750" ,"Sep 8 16:22"]) , (108, ["Minimal.hs" ,"147" ,"Jul 13 23:18"]) , (109, ["Paint.hs" ,"1024" ,"Aug 20 11:57"]) , (110, ["Process.hs" ,"2261" ,"Aug 20 11:57"]) , (111, ["TimeFlows.hs" ,"4929" ,"Aug 20 11:57"]) , (112, ["TimeFlowsEx.hs" ,"8648" ,"Aug 20 11:57"]) , (113, ["desert.bmp" ,"61302" ,"Jul 13 23:31"]) ] main :: IO () main = start gui gui :: IO () gui = do -- main gui elements: frame, panel, text control, and the notebook f <- frame [text := "List Sample"] -- panel: just for the nice grey color p <- panel f [] textlog <- textCtrl p [enabled := False, wrap := WrapLine] -- use text control as logger textCtrlMakeLogActiveTarget textlog logMessage "logging enabled" -- list control l <- listCtrl p [columns := [("Name", AlignLeft, 120) ,("Size", AlignRight, -1) ,("Date", AlignRight, -1)]] set l [on listEvent := onListEvent l] mapM_ (setItem l) entries -- specify layout set f [layout := container p $ margin 10 $ column 5 [ fill $ widget l , hfill $ widget textlog ] ,clientSize := sz 400 300 ] return () where onListEvent lc eventList = case eventList of ListItemSelected idx -> do dat <-listCtrlGetItemData lc idx logMessage ("item selected: " ++ show idx ++ " Data: " ++ show dat) ListItemDeselected idx -> logMessage ("item de-selected: " ++ show idx) other -> logMessage ("list control event.") setItem lc (key_val, col_txts) = do count <- listCtrlGetItemCount lc idx <- listCtrlInsertItemWithLabel lc count (show count) (-1) mapM_ (\(column, col_txt) -> listCtrlSetItem lc idx column col_txt (-1)) (zip [0..] col_txts) listCtrlSetItemData lc idx key_val Is what I am trying to achieve possible or would I be better maintaining a > Data.Map with a mapping between idx and the relevant data? If so, how would > that > affect things if the ListCtrl contents are re-ordered (e.g. sort by date)? > Hopefully the example shows how to do what you want... > Sorry if this seems a stupid query, I'm new to Haskell and trying to learn > after > years of using imperative languages. > It's an entirely sensible question if you ask me, but then I'm also a recovering imperative programmer :-) Regards Jeremy |
From: James d'A. <jam...@wr...> - 2010-10-29 04:31:41
|
Hi I've reached a brickwall with wxHaskell's ListCtrl and I'm hoping for some help, please. Conceptually what I want to do is create items in the ListCtrl and associate a unique identifier with each item. This identifier would not be displayed in the UI. An Int64 would be ideal but a String would be fine. When a user clicks on the item, I want to be able to retrieve this identifier and use it to find the associated data, in this case a database record. The items are inserted into the ListCtrl ok with the following code: showStudy :: ListCtrl l -> (Int,DicomStudy) -> IO () showStudy wgDbTable (idx,dcmStudy) = do listCtrlInsertItemWithData wgDbTable idx $ studyUid dcmStudy set wgDbTable [item idx := [(patientName . studyPatient) dcmStudy, studyDescription dcmStudy, studyDate dcmStudy]] and the event handler looks like this: onDbTableEvent :: HasturContext -> EventList -> IO () onDbTableEvent HasturCtx {guiDbTable=wgDbTable, guiSeriesList=wgSeriesList} event = case event of ListItemSelected idx -> do studyUid <- listCtrlGetItemData wgSeriesList idx infoM "Hastur" $ "DB Table event: " ++ show studyUid propagateEvent otherwise -> propagateEvent When the user clicks on the ListCtrl item I get an error dialog pop up saying: "Couldn't retrieve information about list control item X" where X is idx. The infoM call produces: "DB Table event: 0" What am I missing? I've tried listCtrl{Get/Set}Data, listCtrl{Get/Set}Text all with the same result. listCtrlDeleteItem in the event handler doesn't delete the item but produces the result: False. I've tried searching for examples to no avail. I'm not using images for items at the moment as I was trying to keep it simple. Is what I am trying to achieve possible or would I be better maintaining a Data.Map with a mapping between idx and the relevant data? If so, how would that affect things if the ListCtrl contents are re-ordered (e.g. sort by date)? Sorry if this seems a stupid query, I'm new to Haskell and trying to learn after years of using imperative languages. James |
From: Eric Y. K. <eri...@gm...> - 2010-10-18 05:15:40
|
On Sun, Oct 17, 2010 at 16:04:36 -0600, Jesse Hester wrote: > Unfortunately I'm being ignored on there. :( Well, you may have better luck another time, or also on haskell-cafe. #haskell tends to be very friendly from my experience. What would help is your ghc-pkg dump output and also the version of the GHC and the Haskell Platform you are using (assuming you are using the Haskell Platform, which is not 100% essential). I *think* you want the version of containers that uses array-0.3.0.1 as this is what seems to ship with the version of haskell-platform I had installed (the one that goes with GHC 6.12.3) -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> For a faster response, try +44 (0)1273 64 2905 or xmpp:ko...@ja... (Jabber or Google Talk only) |
From: Jesse H. <hes...@gm...> - 2010-10-17 22:04:42
|
Unfortunately I'm being ignored on there. :( Thanks for taking a look though. Jesse On Sun, Oct 17, 2010 at 3:42 PM, Eric Y. Kow <eri...@gm...> wrote: > On Sun, Oct 17, 2010 at 15:06:01 -0600, Jesse Hester wrote: > > Configuring wxcore-0.12.1.6... > > Warning: This package indirectly depends on multiple versions of the same > > package. This is highly likely to cause a compile failure. > > package containers-0.3.0.0 requires array-0.3.0.0 > ... > > package containers-0.3.0.0 requires array-0.3.0.1 > > package wxcore-0.12.1.6 requires containers-0.3.0.0 > > package wxdirect-0.12.1.3 requires containers-0.3.0.0 > > Preprocessing library wxcore-0.12.1.6... > > Building wxcore-0.12.1.6... > > <command line>: cannot satisfy -package-id > > wxdirect-0.12.1.3-af0b8773d1663c5806a3601e31af398f: > > wxdirect-0.12.1.3-af0b8773d1663c5806a3601e31af398f is unusable due to > > missing or recursive dependencies: > > containers-0.3.0.0-409fe3b8f0dda25b98e03716d26be411 > > (use -v for more information) > > OK, this looks fairly mysterious to me, but seems more like a general > #haskell type question than one for the wxhaskell-users list. It seems > you're depending on two different versions of containers-0.3.0.0, one > built against array-0.3.0.0, and one against array-0.3.0.1 > > I don't have a good idea how this sort of thing happens, but I suspect > the #haskell folks could be more helpful now with the new chunk of > information you found. > > You may want to see section 4.8.5 in > http://www.haskell.org/ghc/docs/6.12.2/html/users_guide/packages.html > > Sorry! > > -- > Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> > For a faster response, try +44 (0)1273 64 2905 or > xmpp:ko...@ja... <xmpp%3A...@ja...> (Jabber or Google Talk only) > |
From: Eric Y. K. <eri...@gm...> - 2010-10-17 21:42:21
|
On Sun, Oct 17, 2010 at 15:06:01 -0600, Jesse Hester wrote: > Configuring wxcore-0.12.1.6... > Warning: This package indirectly depends on multiple versions of the same > package. This is highly likely to cause a compile failure. > package containers-0.3.0.0 requires array-0.3.0.0 ... > package containers-0.3.0.0 requires array-0.3.0.1 > package wxcore-0.12.1.6 requires containers-0.3.0.0 > package wxdirect-0.12.1.3 requires containers-0.3.0.0 > Preprocessing library wxcore-0.12.1.6... > Building wxcore-0.12.1.6... > <command line>: cannot satisfy -package-id > wxdirect-0.12.1.3-af0b8773d1663c5806a3601e31af398f: > wxdirect-0.12.1.3-af0b8773d1663c5806a3601e31af398f is unusable due to > missing or recursive dependencies: > containers-0.3.0.0-409fe3b8f0dda25b98e03716d26be411 > (use -v for more information) OK, this looks fairly mysterious to me, but seems more like a general #haskell type question than one for the wxhaskell-users list. It seems you're depending on two different versions of containers-0.3.0.0, one built against array-0.3.0.0, and one against array-0.3.0.1 I don't have a good idea how this sort of thing happens, but I suspect the #haskell folks could be more helpful now with the new chunk of information you found. You may want to see section 4.8.5 in http://www.haskell.org/ghc/docs/6.12.2/html/users_guide/packages.html Sorry! -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> For a faster response, try +44 (0)1273 64 2905 or xmpp:ko...@ja... (Jabber or Google Talk only) |
From: Eric Y. K. <eri...@gm...> - 2010-10-17 21:08:48
|
On Sun, Oct 17, 2010 at 14:59:20 -0600, Jesse Hester wrote: > cabal: Error: some packages failed to install: > wx-0.12.1.6 depends on wxcore-0.12.1.6 which failed to install. > wxcore-0.12.1.6 failed during the building phase. The exception was: > ExitFailure 1 Hmm, what a helpful exception! Could I just check that wxWidgets really is installed? I think http://www.haskell.org/haskellwiki/WxHaskell/Linux talks about the relevant packages. If you do work out how to get unstuck, it might be good to update that wiki page for future users. Cheers, -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> For a faster response, try +44 (0)1273 64 2905 or xmpp:ko...@ja... (Jabber or Google Talk only) |
From: Jesse H. <hes...@gm...> - 2010-10-17 21:06:02
|
I already had the first package mentioned on that page, and after installing the second package the new message is: Configuring wxcore-0.12.1.6... Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package containers-0.3.0.0 requires array-0.3.0.0 package wxcore-0.12.1.6 requires array-0.3.0.1 package stm-2.1.1.2 requires array-0.3.0.1 package containers-0.3.0.0 requires array-0.3.0.1 package wxcore-0.12.1.6 requires containers-0.3.0.0 package wxdirect-0.12.1.3 requires containers-0.3.0.0 Preprocessing library wxcore-0.12.1.6... Building wxcore-0.12.1.6... <command line>: cannot satisfy -package-id wxdirect-0.12.1.3-af0b8773d1663c5806a3601e31af398f: wxdirect-0.12.1.3-af0b8773d1663c5806a3601e31af398f is unusable due to missing or recursive dependencies: containers-0.3.0.0-409fe3b8f0dda25b98e03716d26be411 (use -v for more information) cabal: Error: some packages failed to install: wx-0.12.1.6 depends on wxcore-0.12.1.6 which failed to install. wxcore-0.12.1.6 failed during the building phase. The exception was: ExitFailure 1 On Sun, Oct 17, 2010 at 3:03 PM, Eric Y. Kow <eri...@gm...> wrote: > On Sun, Oct 17, 2010 at 14:59:20 -0600, Jesse Hester wrote: > > cabal: Error: some packages failed to install: > > wx-0.12.1.6 depends on wxcore-0.12.1.6 which failed to install. > > wxcore-0.12.1.6 failed during the building phase. The exception was: > > ExitFailure 1 > > Hmm, what a helpful exception! > > Could I just check that wxWidgets really is installed? > I think http://www.haskell.org/haskellwiki/WxHaskell/Linux > talks about the relevant packages. > > If you do work out how to get unstuck, it might be good > to update that wiki page for future users. > > Cheers, > > -- > Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> > For a faster response, try +44 (0)1273 64 2905 or > xmpp:ko...@ja... <xmpp%3A...@ja...> (Jabber or Google Talk only) > |
From: Jesse H. <hes...@gm...> - 2010-10-17 20:59:28
|
Hi, I recently moved from Windows to Ubuntu, and I'm having trouble getting wxhaskell. When I run "cabal install wx" I get the following error message: cabal: Error: some packages failed to install: wx-0.12.1.6 depends on wxcore-0.12.1.6 which failed to install. wxcore-0.12.1.6 failed during the building phase. The exception was: ExitFailure 1 I asked for help on #haskell but to no avail. :( Does anyone know what I need to do here? Thanks, Jesse |
From: Simon M. <si...@jo...> - 2010-09-24 06:10:21
|
On 09/23/2010 10:41 PM, Mitar wrote: > The other would be probably to implement/document configuration > (extra-lib-dir?) that Cabal (or GHC in general) first searches > system's library path (those against which GHC was compiled in Haskell > Platform) and if lib is not there goes for MacPorts or Fink's library > paths? Exactly. So, if you're in this situation, just make sure - whenever you use GHC, pass it the -L/usr/lib flag - put --extra-lib-dirs=/usr/lib in ~/.cabal/config Now Apple's libs will be preferred when linking haskell executables, solving the libiconv errors while still allowing macports libs to be used. |
From: Mitar <mm...@gm...> - 2010-09-24 05:41:20
|
Hi! On Thu, Sep 9, 2010 at 5:38 PM, S. Doaitse Swierstra <do...@sw...> wrote: > I am in my yearly fightto get a working combination of operating system (Snow Leopard), compiler version (6.12) , wxWidgets and wxHaskell on my Mac . I had same problem just know and it seems to be (as described also elsewhere) that Haskell Platform GHC is linked against system's iconv and by using (or having) MacPorts or Fink with their own version you have a conflict. One solution is to get MacPorts a new version of GHC so there will be no need for Haskell Platform GHC installation if you want to use MacPorts: https://trac.macports.org/ticket/25558 (Or you could just change PATH so that it uses MacPorts version.) The other way is that you (for session in which you compile) hide MacPorts or Fink installation. I had this problem with Fink and I fixed this simply by undeclaring environment variables: export -n LD_LIBRARY_PATH export -n LIBRARY_PATH Of course then you cannot use Haskell libraries which require additional libraries not installed on the system (and this is why you install them with MacPorts or Fink). So one way would be to have Haskell Platform versions which link against MacPorts and Fink iconv (or their library paths in general). The other would be probably to implement/document configuration (extra-lib-dir?) that Cabal (or GHC in general) first searches system's library path (those against which GHC was compiled in Haskell Platform) and if lib is not there goes for MacPorts or Fink's library paths? Mitar |
From: Tom O. <tos...@gm...> - 2010-09-23 19:29:43
|
On Thu, Sep 23, 2010 at 2:10 AM, Axel Simon <Axe...@in...> wrote: > > The above is how it should all be used as far as I can see. Have you tried to add some putStrLn statements to see if the keyPressEvent is actually emitted > on the notebook? Actually, it appears that this, in addition to what Andy suggested with the widgetShowAll event, seemed to the the main problem with the code. After having the event being emitted from the window, and by adding the widgetShowAll as Andy suggested, the issue has been resolved. Thanks for helping me solve the problem :) Sincerely, Tom Ostojich |
From: S. D. S. <do...@sw...> - 2010-09-19 19:15:35
|
In trying to get a working wx on my Snow leopard Mac I think I managed to throw away all traces of macport remains, and installed a clean GHC 6.12, a clean wx, wxcore etc. Now the website says that I still need this macosx-app, which is bundled in the binary installers, but which these have been discontinued. I can't find the templates however in the source files which I need to build this macosx-app myself. So I have the following questions: - do I still need macosx-app (my impression is: yes), and if so how can I get one - what is the role of the cabal-macosx - is the wxhaskell wiki uptodate; my impression is that it is not describing the actual situation anymore with respect to the questions above Doaitse PS: I am a bit worried about showing my incompetence as a system manager, so I would be happy if someone could help me out, for which efoort in return I am prepared to explain how I got things working on the wiki On 9 sep 2010, at 17:38, S. Doaitse Swierstra wrote: > I am in my yearly fightto get a working combination of operating system (Snow Leopard), compiler version (6.12) , wxWidgets and wxHaskell on my Mac . > After deleting most of my stuff, starting afresh, hours of building using macports etc. I finally get the message: > > loeki:Opgave doaitse$ ghc --make Turtle.hs > [1 of 1] Compiling Main ( Turtle.hs, Turtle.o ) > Linking Turtle ... > Undefined symbols: > "_iconv_open", referenced from: > _hs_iconv_open in libHSbase-4.2.0.2.a(iconv.o) > (maybe you meant: _hs_iconv_open) > "_iconv", referenced from: > _hs_iconv in libHSbase-4.2.0.2.a(iconv.o) > (maybe you meant: _hs_iconv_open, _hs_iconv , _hs_iconv_close ) > "_iconv_close", referenced from: > _hs_iconv_close in libHSbase-4.2.0.2.a(iconv.o) > (maybe you meant: _hs_iconv_close) > ld: symbol(s) not found > collect2: ld returned 1 exit status > loeki:Opgave doaitse$ > > > Some Googling showed me that the same problem has shown up with Yi, The solution however is not there. Can someone enlighten me. > > Doaitse > > > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users |
From: Tom O. <tos...@gm...> - 2010-09-13 04:35:54
|
Hi Henk-Jan, Thanks for the snippet of code you submitted; it did the main part right, which was identifying whether or not a modifier and a key was pressed. However, and I'm not sure what the source of this problem is, whenever I use the constructor (KeyChar c), where c is a character, I don't get a value of type Key that represents the key at character c. To make this problem more concrete, I have submitted the following sample application which can be ran and tested to demonstrate what I mean: module Main where import Graphics.UI.WX import Graphics.UI.WXCore handleKeyboard :: Frame a -> EventKey -> IO() handleKeyboard f k = if controlKeyPressed then keyTestModifiers f (ks) else infoDialog f "info" "No ctrl-<key> combo activated" where controlKeyPressed = keyModifiers k == Modifiers False False True False ks = keyKey k keyTestModifiers :: Frame a -> Key -> IO() keyTestModifiers f k | k == (KeyChar 't') = infoDialog f "info" "Test: Ctrl-t activated" | k == (KeyReturn) = infoDialog f "info" "Test: Ctrl-Enter activated" | otherwise = infoDialog f "info" "Test: Different key activated" main :: IO () main = start gui gui :: IO () gui = do f <- frameFixed [text := "test"] p <- panel f [] set p [on keyboard := handleKeyboard f] Notice that if you compile and run this application and hit n, where n is any keyboard value, you get the expected response (A dialog saying "No Ctrl-key combo activated" pops up). Likewise, if you hit Ctrl-Enter, you get the expected response ("Test: Ctrl-Enter activated"). However, when you enter Ctrl-t, even though Ctrl-t should be defined, it returns "Test: Different Key Activated" instead of "Test: Ctrl-t activated"! I'm not sure why does it do this, but judging by the code snippet you presented, this shouldn't be expected behaviour. Regards, Tom Ostojich |
From: Henk-Jan v. T. <hj...@ch...> - 2010-09-12 23:22:37
|
On Sun, 12 Sep 2010 06:11:09 +0200, Tom Ostojich <tos...@gm...> wrote: > Hey all, > > Excuse me if I'm missing something obvious, since I'm new to both Haskell > programming and even newer yet to GUI programming, but I'm not sure on > how > to resolve this issue. > > Basically, I know that you can use the charKey function to determine > whether > or not a character key is pressed, but there appears to be no standard > library function for checking if a key and a modifier, such as the > Control > or Meta keys, are pressed as well. > > Is there a way to get something so that, once a <modifier> + <character > key> > combination is pressed to generate an appropriate event, so I can do > stuff > with that combination? > Somehow, the code in my previous mail was mangled (probably because of the '>' at the start of the lines), so here is it again. I used the following function to handle keystrokes without modifier keys: handleKeyboard :: MainFrame -> Var GameState -> EventKey -> IO () handleKeyboard f game k = if noModifierKeyPressed then case keyKey k of KeyChar 'z' -> moveLeft f game KeyChar 'c' -> moveRight f game KeyChar 's' -> moveUp f game KeyChar 'x' -> moveDown f game KeyLeft -> moveLeft f game KeyRight -> moveRight f game KeyUp -> moveUp f game KeyDown -> moveDown f game _ -> propagateEvent else propagateEvent where noModifierKeyPressed = keyModifiers k == Modifiers False False False False This handles keyboard events, see [0]; use the following to activate this: set f [ on keyboard := handleKeyboard f game ] where f is the handle of frame. Regards, Henk-Jan van Tuyl [0] http://hackage.haskell.org/packages/archive/wx/latest/doc/html/Graphics-UI-WX-Events.html -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- |
From: Henk-Jan v. T. <hj...@ch...> - 2010-09-12 23:08:31
|
On Sun, 12 Sep 2010 06:11:09 +0200, Tom Ostojich <tos...@gm...> wrote: > Hey all, > > Excuse me if I'm missing something obvious, since I'm new to both Haskell > programming and even newer yet to GUI programming, but I'm not sure on > how > to resolve this issue. > > Basically, I know that you can use the charKey function to determine > whether > or not a character key is pressed, but there appears to be no standard > library function for checking if a key and a modifier, such as the > Control > or Meta keys, are pressed as well. > > Is there a way to get something so that, once a <modifier> + <character > key> > combination is pressed to generate an appropriate event, so I can do > stuff > with that combination? I used the following function to handle keystrokes without modifier keys: > handleKeyboard :: Frame -> Var GameState -> EventKey -> IO () > handleKeyboard f game k = > if noModifierKeyPressed then > case keyKey k of > KeyLeft -> moveLeft f game KeyRight -> moveRight > f game KeyUp -> moveUp f game KeyDown -> > moveDown f game > _ -> propagateEvent > > else > propagateEvent > > where > noModifierKeyPressed = keyModifiers k == Modifiers False False > False False This handles keyboard events, see [0]; use the following to activate this: > set f [ on keyboard := handleKeyboard f game ] where f is the handle of frame. Regards, Henk-Jan van Tuyl [0] http://hackage.haskell.org/packages/archive/wx/latest/doc/html/Graphics-UI-WX-Events.html -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- |
From: Tom O. <tos...@gm...> - 2010-09-12 04:11:15
|
Hey all, Excuse me if I'm missing something obvious, since I'm new to both Haskell programming and even newer yet to GUI programming, but I'm not sure on how to resolve this issue. Basically, I know that you can use the charKey function to determine whether or not a character key is pressed, but there appears to be no standard library function for checking if a key and a modifier, such as the Control or Meta keys, are pressed as well. Is there a way to get something so that, once a <modifier> + <character key> combination is pressed to generate an appropriate event, so I can do stuff with that combination? Thanks, Tom |
From: Johan T. <joh...@gm...> - 2010-09-09 15:56:09
|
See if http://stackoverflow.com/questions/2726248/ghc-6-12-and-macports/3601842#3601842 is of any help. |
From: Sean L. <le...@cs...> - 2010-09-09 15:50:43
|
On Thu, Sep 9, 2010 at 17:44, Eric Y. Kow wrote: > On Thu, Sep 09, 2010 at 17:38:40 +0200, S. Doaitse Swierstra wrote: > > I am in my yearly fightto get a working combination of operating > > system (Snow Leopard), compiler version (6.12) , wxWidgets and > > wxHaskell on my Mac . After deleting most of my stuff, starting > > afresh, hours of building using macports etc. I finally get the > > message: > > I may have had a similar problem back in March: > > http://www.mail-archive.com/wxh...@li.../msg00827.html > > Don't know if my explanation is sensible or not. > Your observation seems to agree with several other links at http://www.google.com/search?q=macports+iconv+link . Some of them suggest renaming the Mac OS X header file iconv.h (rather than not using MacPorts). Sean |
From: Eric Y. K. <eri...@gm...> - 2010-09-09 15:45:04
|
Hi Doaitse, On Thu, Sep 09, 2010 at 17:38:40 +0200, S. Doaitse Swierstra wrote: > I am in my yearly fightto get a working combination of operating > system (Snow Leopard), compiler version (6.12) , wxWidgets and > wxHaskell on my Mac . After deleting most of my stuff, starting > afresh, hours of building using macports etc. I finally get the > message: I may have had a similar problem back in March: http://www.mail-archive.com/wxh...@li.../msg00827.html Don't know if my explanation is sensible or not. -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> For a faster response, try +44 (0)1273 64 2905 or xmpp:ko...@ja... (Jabber or Google Talk only) |
From: S. D. S. <do...@sw...> - 2010-09-09 15:38:51
|
I am in my yearly fightto get a working combination of operating system (Snow Leopard), compiler version (6.12) , wxWidgets and wxHaskell on my Mac . After deleting most of my stuff, starting afresh, hours of building using macports etc. I finally get the message: loeki:Opgave doaitse$ ghc --make Turtle.hs [1 of 1] Compiling Main ( Turtle.hs, Turtle.o ) Linking Turtle ... Undefined symbols: "_iconv_open", referenced from: _hs_iconv_open in libHSbase-4.2.0.2.a(iconv.o) (maybe you meant: _hs_iconv_open) "_iconv", referenced from: _hs_iconv in libHSbase-4.2.0.2.a(iconv.o) (maybe you meant: _hs_iconv_open, _hs_iconv , _hs_iconv_close ) "_iconv_close", referenced from: _hs_iconv_close in libHSbase-4.2.0.2.a(iconv.o) (maybe you meant: _hs_iconv_close) ld: symbol(s) not found collect2: ld returned 1 exit status loeki:Opgave doaitse$ Some Googling showed me that the same problem has shown up with Yi, The solution however is not there. Can someone enlighten me. Doaitse |
From: S. D. S. <do...@sw...> - 2010-09-09 11:27:03
|
It would be nice if the problem in the message at the end was reported on the wxHaskell wiki, since I spent a lot of time trying to cure this error message, only to find that it is not curable by me. So I compiled my example program with ghc instead of ghci. The program runs, but displays an error message and tells us: loeki:Opgave doaitse$ ghc --make Turtle.hs [1 of 1] Compiling Main ( Turtle.hs, Turtle.o ) Linking Turtle ... loeki:Opgave doaitse$ ls EnableGUI.hs Origineel Turtle.hi Turtle.hs~ Turtle.pdf ghc-small Opnieuw.bat Turtle Turtle.hs Turtle.o editor start.bat loeki:Opgave doaitse$ ./Turtle 13:20:56: Debug: wxColour::Set - couldn't set to colour string 'GREY' [Debug] 13:20:56: Adding duplicate image handler for 'PNG file' [Debug] 13:20:56: Adding duplicate image handler for 'JPEG file' [Debug] 13:20:56: Adding duplicate image handler for 'TIFF file' [Debug] 13:20:56: Adding duplicate image handler for 'GIF file' [Debug] 13:20:56: Adding duplicate image handler for 'PNM file' [Debug] 13:20:56: Adding duplicate image handler for 'PCX file' [Debug] 13:20:56: Adding duplicate image handler for 'Windows icon file' [Debug] 13:20:56: Adding duplicate image handler for 'Windows cursor file' [Debug] 13:20:56: Adding duplicate image handler for 'Windows animated cursor file' [Debug] 13:20:56: Adding duplicate image handler for 'TGA file' [Debug] 13:20:56: Adding duplicate image handler for 'XPM file' [Debug] 13:20:57: ../src/common/event.cpp(1389): assert "m_dynamicEvents" failed in SearchDynamicEventTable(): caller should check that we have dynamic events (see attachment for error message on screen) Any idea what to do about this (I installed wxWidgets through macports) Doaitse On 25 feb 2010, at 11:34, Jeremy O'Donoghue wrote: > Hi Robert, > > This is really a GHC bug (see > http://sourceforge.net/mailarchive/forum.php?thread_name=20100127213837.GA234%40dewdrop.local&forum_name=wxhaskell-devel > for details), but it is something we will have to fix in wxHaskell since > I think the prospect of a fix in GHC is a long way off (it requires > moving GHC onto a very new MinGW base for compiler etc.). > > It is a high priority item for me in wxHaskell terms, but since > wxHaskell is a leisure-time project for me, I don't get very much time > to work on it. However, rest assured that it is being looked at. > > Best regards > Jeremy > > On Wed, 24 Feb 2010 19:45 +0000, "Robert Rothenberg" <ro...@gm...> > wrote: >> I installed wxHaskell using cabal. Running ghci -package wx >> BouncingBalls.hs gives me: >> GHCi, version 6.10.4: http://www.haskell.org/ghc/ :? for help >> Loading package ghc-prim ... linking ... done. >> Loading package integer ... linking ... done. >> Loading package base ... linking ... done. >> Loading package syb ... linking ... done. >> Loading package base-3.0.3.1 ... linking ... done. >> Loading package array-0.2.0.0 ... linking ... done. >> Loading package stm-2.1.1.2 ... linking ... done. >> Loading package bytestring-0.9.1.4 ... linking ... done. >> Loading package containers-0.2.0.1 ... linking ... done. >> Loading package filepath-1.1.0.2 ... linking ... done. >> Loading package old-locale-1.0.0.1 ... linking ... done. >> Loading package old-time-1.0.0.2 ... linking ... done. >> Loading package unix-2.3.2.0 ... linking ... done. >> Loading package directory-1.0.0.3 ... linking ... done. >> Loading package parsec-2.1.0.1 ... linking ... done. >> Loading package time-1.1.2.4 ... linking ... done. >> Loading package wxdirect-0.12.1.1 ... linking ... done. >> Loading package wxcore-0.12.1.2 ... <command line>: can't load >> .so/.DLL for: stdc++ (libstdc++.so: cannot open shared object file: No >> such file or directory) >> >> stdc++ library is installed. >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> wxhaskell-users mailing list >> wxh...@li... >> https://lists.sourceforge.net/lists/listinfo/wxhaskell-users >> > -- > Jeremy O'Donoghue > jer...@gm... > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users |
From: Jeremy O'D. <jer...@gm...> - 2010-09-09 08:37:27
|
On Wed, 08 Sep 2010 11:31 +0200, "S. Doaitse Swierstra" <do...@sw...> wrote: > On the page; http://www.haskell.org/haskellwiki/WxHaskell/Download > > there are binary versions for wxHaskell for the ghc 6.10. > > Are there versions available for 6.12 a distributed by the Haskell > platform, and if so could someone upload them? I am a Windows nitwit, but > should like to use wxhaskell in the introductory FP course, without the > students having to install two ghc versions. With the build now being cabalized, we've discontinued the installers, and depend on Haskell Platform and wxWidgets being available. It's quite a bit of work to do a good installer, and there didn't seem to be much demand now that Cabal works well. > PS: I tried to install wxHaskell myself in VirtualBox running Wondows 7, > but keep getting complaints from wx-config about paths I have to set, > 9especially the set WXCFG=gcc_dll\mswu) despite that they have been set. > This is on Windows 7, so that may be part of the problem. Hmm. This works for me on a 64 bit Windows 7 image and on a (32 bit) XP image. I have found that it is more reliable to run the command window (cmd.exe) as Administrator to get the installation to work on Windows 7. I do exactly the same as Henk-Jan suggests below. > On 23 aug 2010, at 23:18, Henk-Jan van Tuyl wrote: > > > On Wed, 18 Aug 2010 22:36:07 +0200, Jesse Hester <hes...@gm...> > > wrote: > > > >> setup.exe: wx-config: does not exist. > >> > >> I was told to go to this page: http://sites.google.com/site/wxconfig/ and > >> download wx-config. I did so, and added the folder that I saved it to to > >> my > >> Path variable. I also created both user and system environment variables > >> called WXWIN and set their value to the full path of wx-config (I tried > >> this > >> with and without the .exe suffix). > >> > >> Still, cabal continues to claim that wx-config does not exist. > >> > > > > I have wx-config.exe in my search path and wx installs just fine. WXWIN > > should point to the directory where wxWidgets is installed; you should > > also define WXCFG to specify the configuration. These are the commands I > > use to install wxHaskell: > > > > cabal update > > > > set WXWIN=C:\Qwerty\usr\Henk-Jan\Haskell\wxWidgets-2.8.11 > > set WXCFG=gcc_dll\mswu > > set > > CPLUS_INCLUDE_PATH=C:\Qwerty\MinGW\include\c++\3.4.5;C:\Qwerty\MinGW\include\c++\3.4.5\mingw32\ > > > > cabal install wx --global > > > > Environment variables that are always set in my computer: > > C_INCLUDE_PATH=C:\Qwerty\usr\local\include;C:\Qwerty\usr\local\include\SDL; > > LIBRARY_PATH=C:\Qwerty\usr\local\lib;C:\Qwerty\MinGW\lib;C:\Qwerty\usr\local\lib\curl; > > These are needed for C packages in general. > > > > You can also find instructions at > > http://www.haskell.org/haskellwiki/WxHaskell/Building > > > > Regards, > > Henk-Jan van Tuyl Regards Jeremy -- Jeremy O'Donoghue jer...@gm... |
From: S. D. S. <do...@sw...> - 2010-09-08 09:50:20
|
On the page; http://www.haskell.org/haskellwiki/WxHaskell/Download there are binary versions for wxHaskell for the ghc 6.10. Are there versions available for 6.12 a distributed by the Haskell platform, and if so could someone upload them? I am a Windows nitwit, but should like to use wxhaskell in the introductory FP course, without the students having to install two ghc versions. Doaitse PS: I tried to install wxHaskell myself in VirtualBox running Wondows 7, but keep getting complaints from wx-config about paths I have to set, 9especially the set WXCFG=gcc_dll\mswu) despite that they have been set. This is on Windows 7, so that may be part of the problem. On 23 aug 2010, at 23:18, Henk-Jan van Tuyl wrote: > On Wed, 18 Aug 2010 22:36:07 +0200, Jesse Hester <hes...@gm...> > wrote: > >> setup.exe: wx-config: does not exist. >> >> I was told to go to this page: http://sites.google.com/site/wxconfig/ and >> download wx-config. I did so, and added the folder that I saved it to to >> my >> Path variable. I also created both user and system environment variables >> called WXWIN and set their value to the full path of wx-config (I tried >> this >> with and without the .exe suffix). >> >> Still, cabal continues to claim that wx-config does not exist. >> > > I have wx-config.exe in my search path and wx installs just fine. WXWIN > should point to the directory where wxWidgets is installed; you should > also define WXCFG to specify the configuration. These are the commands I > use to install wxHaskell: > > cabal update > > set WXWIN=C:\Qwerty\usr\Henk-Jan\Haskell\wxWidgets-2.8.11 > set WXCFG=gcc_dll\mswu > set > CPLUS_INCLUDE_PATH=C:\Qwerty\MinGW\include\c++\3.4.5;C:\Qwerty\MinGW\include\c++\3.4.5\mingw32\ > > cabal install wx --global > > Environment variables that are always set in my computer: > C_INCLUDE_PATH=C:\Qwerty\usr\local\include;C:\Qwerty\usr\local\include\SDL; > LIBRARY_PATH=C:\Qwerty\usr\local\lib;C:\Qwerty\MinGW\lib;C:\Qwerty\usr\local\lib\curl; > These are needed for C packages in general. > > You can also find instructions at > http://www.haskell.org/haskellwiki/WxHaskell/Building > > Regards, > Henk-Jan van Tuyl > > > -- > http://Van.Tuyl.eu/ > http://members.chello.nl/hjgtuyl/tourdemonad.html > -- > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users |