wxhaskell

GHC + wxHaskell on Windows

Have GHC 6.8.3 and wxHaskell-0.10.3 on a Windows XP computer. Installed both as binary distributions, not by building from sources. Built a sample with the following command: ghc --make Paint.hs It works on that same computer it was built on (with GHC and wxHaskell installed), but fails if transferred to another one (with neither of th...

What are the relative merits of wxHaskell and Gtk2HS?

Which is better for developing GUI applications with Haskell, wxWidgets (via wxHaskell) or GTK (via Gtk2HS)? What are the pros and cons of each? Does it vary depending on which platform you are targeting (I would primarily be working on OS X but would like my programs to work on Linux and Windows too)? ...

Cabal won't get a new haskell package

Hi I tried to get the wxHaskell package using cabal using: cabal install wxcore --global cabal install wx But running this gave the following error: >cabal install wxcore --global Resolving dependencies... cabal: Error: some packages failed to install: wxcore-0.11.1.2 failed during the configure step. The exception was: sh: runGenPro...

StateT and WX gui coexistance

Hello. usual wxHaskell program looks like main = do run gui gui = do .... .... gui must have type IO a, run has type IO a -> IO (), also there is some initialization routines in run. I'm tring to do following: data AppGlobals = AG { ... some data ... } type MApp a = StateT AppGlobals IO a But in this case g...

run wxHaskell on other machine

Hello, I've compiled haskell program which uses wxHaskell library, now I would like to know how to make it run on other machines which doesn't have wxHaskell installed. Of course I can see errors and I can copy dlls written in output and copy them to that machine but what is professioal sollution, can I write any installer or something l...

Haskell: grid in wxHaskell

Hello, Could someone explain me what this code does line by line ? how t ounderstand excactly first line with declaration ? what does it mean: [Prop (Grid ())]? thanks for help gridCtrl :: Window a -> [Prop (Grid ())] -> IO (Grid ()) gridCtrl parent props = feed2 props 0 $ initialWindow $ \id rect -> \props flags -> do g <- ...

displaying database content in wxHaskell

Hello, Im using tutorials from wxHaskell and want to display content of table movies in the grid. HEre is my code : {-------------------------------------------------------------------------------- Test Grid. --------------------------------------------------------------------------------} module Main where import Graphics.UI.WX i...

wxHaskell scrollable grid

Hello, How can I make scrollable Grid in wxHaskell ? thanks ...

GUI wxHaskell database table in grid

Hello, I'm writing GUI app in haskell. I use sqlite to gather data and want to use grid in wxHASKELL TO present data in app. Everything is all right but I want to have possibility to add rows from haskell app. I achieved that but when I refresh it It expands and covers other controls. To make things short how can I set maximum size of...

maximize frame on startup in wxHaskell

Hello, How can I make window maximized on start with wxHaskell ? Thanks for help ...

wxhaskell asynchronous updates

I am using WxHaskell to graphically show the state of a program that advertises state updates using TCP (which I decode using Data.Binary). When an update is received, I want to update the display. So I want the GUI to update its display asynchronously. I know that processExecAsync runs a command line process asynchronously, but I don'...

Keep track of the program variables in Haskell like imperative programs

I'm having a hard time finding out how to make something change every time the user interacts with my program. It's hard to explain so here's an example (Haskell + wxhaskell): simulate :: Int -> Frame () -> IO () simulate qNr window = do fdata <- readFile "qarchive" case (split (listTake (split fdata '\n') qNr 0) '#') of (qst:a:b:c:...

wxHaskell fails because it depends on wx_macu-2.8

I install wxWidgets with macports then ran the command: sudo cabal install wx which output included: /bin/sh: wxdirect: command not found /bin/sh: wxdirect: command not found /bin/sh: wxdirect: command not found /bin/sh: wxdirect: command not found Configuring wxcore-0.12.1.6... setup: Missing dependency on a foreign library: * Missing ...