Questions tagged [wxhaskell]

A Haskell binding for wxWidgets

WxHaskell is a GUI library for Haskell built ontop of wxwidgets

83 questions
20
votes
4 answers

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…
Dan Dyer
  • 53,737
  • 19
  • 129
  • 165
13
votes
1 answer

problem running wxHaskell (Windows)

The page: (http://en.wikibooks.org/wiki/Haskell/GUI) describes that to run wx code, one can install wx and then one must "register wxHaskell with GHC" - but I think the binary installer of wxHaskell (http://wxhaskell.sourceforge.net/download.html)…
guthrie
  • 4,529
  • 4
  • 26
  • 31
13
votes
3 answers

Screen capture in Haskell?

Is it possible to capture the screen (or a window) using Haskell in a Windows environment? (ie, taking a screenshot every few minutes or so). If so, how would one go about doing this (again, in Haskell, for a Windows environment)? More info: I'm a…
M. Ferguson
  • 133
  • 6
8
votes
1 answer

Static linking wxHaskell on Mac OS X

I want to distribute a wxHaskell application on Mac OS X. How do I go about creating a Mac OS X app which can be used standalone without the user having to install any extra libraries? I noticed the cabal-macosx project which makes .app bundles for…
Binil Thomas
  • 13,699
  • 10
  • 57
  • 70
6
votes
1 answer

Why does Stack not recognize the dependency it just installed?

So I'm trying to use reactive-banana + wxHaskell for GUI programming. As a newbie to Haskell and its dev tools, I'm very perplexed by stack. So I try stack install wx, which prompts me to install wxcore, which prompts me to install wxc and…
allidoiswin
  • 2,543
  • 1
  • 20
  • 23
6
votes
2 answers

can't get wxHaskell to work from ghci on Mac

I'm trying to run an example using EnableGUI function. % ghci -framework Carbon Main.hs *Main> enableGUI >> main This is what I get instead of a working program: 2013-01-14 00:21:03.021 ghc[13403:1303] *** Assertion failure in +[NSUndoManager…
Valentin Golev
  • 9,965
  • 10
  • 60
  • 84
5
votes
1 answer

Draw a scaled bitmap using wxhaskell

The imageviewer example shows how to display an image in a ScrolledWindow. What if I want to display the image in the available space, scaling the bitmap as needed? My google-fu failed me on this one. edit: I thought I had something with…
David V.
  • 5,708
  • 3
  • 27
  • 27
5
votes
1 answer

How to install wxHaskell on Windows with MinGW/MSYS

I was trying to install wxHaskell into a machine running Windows XP64, with MinGW/MSYS and wxWidget 3.0 built from source using gcc. I did: cabal install wx and got an error: ... Configuring wxc-0.90.0.4... setup.exe: wx-config: does not…
thor
  • 21,418
  • 31
  • 87
  • 173
5
votes
2 answers

How to redistribute wxHaskell apps?

I am using ghc 7.6.3. I installed wxHaskell from here: https://github.com/wxHaskell/wxHaskell It worked, the sample programs compile and the run successfully. The only problem now is that I want to distribute a wxHaskell application on mac OS X. I…
esato1981
  • 283
  • 2
  • 8
5
votes
1 answer

wx haskell Drag and Drop example

I am looking for a wx haskell Drag and Drop example. I haven't found any yet. Any available ? or hints ? So far: I can see a on drag event ( but no "on drop") mouse is just giving a left up on target I see some comment where I am supposed to…
Luc Taesch
  • 193
  • 6
5
votes
1 answer

putStrLn doesn't print to console

I am experimenting with wxHaskell. I wasn't able to run the app under ghci, so I have to use application to test it. I wanted to test the program with println debugging. However, it seems that putStrLn doesn't work in GUI: {-# LANGUAGE Haskell2010…
Konstantin Solomatov
  • 10,252
  • 8
  • 58
  • 88
4
votes
4 answers

cabal install wx Missing C library

Env: OS: feodra 16 haskell-platform wxGTK-devel ghc 7.0.4 I am trying to install wxHaskell with cabal install wx Then these errors are given. Missing dependencies on foreign libraries: * Missing C libraries: wx_baseu-2.8, wx_baseu_net-2.8,…
jilen
  • 5,633
  • 3
  • 35
  • 84
4
votes
2 answers

Is wxHaskell dead?

It seems to be dead. Is it? If it is, what should I use instead?
Emily
  • 2,577
  • 18
  • 38
4
votes
3 answers

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…
Headcrab
  • 6,838
  • 8
  • 40
  • 45
4
votes
0 answers

Multi-threading on wxHaskell

Has anyone used multi-threading safely in wxHaskell? I am trying to determine if a wxHaskell program could use multi cores to do background processing. The link below explains how to do this safely in Gtk2Hs: http://dmwit.com/gtk2hs/ The key seems…
1
2 3 4 5 6