[Haskell-cafe] Simple GUI Form
Rune Harder Bak
rune at bak.dk
Thu Nov 29 15:54:36 CET 2012
I'm very interested in FRP, but all the examples I could see was
forms with "live" feedback
gui like a real-time calculator.
This is a one-time form where the user fills everything in, clicks on a button,
where after the computations might take a long time, perhaps display
But maybe this is a good use-case for reactive-banana as well?
Do you have any good examples in this regard?
On Thu, Nov 29, 2012 at 2:37 PM, Ertugrul Söylemez <es at ertes.de> wrote:
> Hi there Rune,
> if you want to get started with declarative GUI programming in Haskell,
> I really recommend taking the FRP route. Check out the
> reactive-banana-wx  library instead of using wxHaskell directly. If
> you manage to get wxHaskell working on Windows, then reactive-banana
> will work as well.
> : <http://www.haskell.org/haskellwiki/Reactive-banana>
> Rune Harder Bak <rune at bak.dk> wrote:
>> I have some input parameters
>> data Input = ...
>> that I need the user to enter in a gui pop-up. (windows people...)
>> The rest of the app is not gui (or perhaps progress could be displayed
>> in a log-window)
>> What is the easiest way to make such a GUI form?
>> It need to compile for both Linux and Windows, so I though WxWidgets
>> was ideal, and I got wx < 0.90 to install (using wxWidgets2.8) on
>> both windows and linux.
>> Now I just need to create the form, but how do you do that?
>> Any clues or links to examples? I have never used wxwidgets on any
>> platform or done any other form of GUI before for that matters.
>> (apart from some Visual Basic ten years ago, and html).
>> I tried looking at wx examples, but I couldn't find this simple use
>> case explained anywhere.
>> I installed wx in the first place because WxGeneric seemed exactly
>> what I needed,
>> but I can't get it to compile using ghc7.4.2 from haskell-platform.
>> Anybody got that working or have some other simple method?
>> Help much appreciated!
>>  http://hackage.haskell.org/package/wx-0.13.2.3
>>  http://hackage.haskell.org/package/WxGeneric
> Not to be or to be and (not to be or to be and (not to be or to be and
> (not to be or to be and ... that is the list monad.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe