Re: [Haskell-cafe] Simple GUI Form

2012-12-01 Thread Rune Harder Bak
zpráva -- Od: Rune Harder Bak r...@bak.dk Datum: 30. 11. 2012 Předmět: Re: [Haskell-cafe] Simple GUI Form I know it's not wx, but if you were willing to use GTK, you could simply install: http://hackage.haskell.org/package/gtk-jsinput and generate the form automatically

Re: [Haskell-cafe] Simple GUI Form

2012-11-30 Thread Rune Harder Bak
Of course. There is no reason to think that FRP is limited to real-time applications with complicated interactions. (...) there is a somewhat comprehensive tutorial [1] as well as lots of examples [2] linked from the wiki. Thank you for the links. I read it and looked at the examples. It

Re: [Haskell-cafe] Simple GUI Form

2012-11-30 Thread Rune Harder Bak
I know it's not wx, but if you were willing to use GTK, you could simply install: http://hackage.haskell.org/package/gtk-jsinput and generate the form automatically as described in: https://github.com/timthelion/gtk-jsinput/blob/master/Graphics/UI/Gtk/Custom/JSInput.hs Cool! Would rather

[Haskell-cafe] Simple GUI Form

2012-11-29 Thread Rune Harder Bak
Hi 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

Re: [Haskell-cafe] Simple GUI Form

2012-11-29 Thread Rune Harder Bak
route. Check out the reactive-banana-wx [1] library instead of using wxHaskell directly. If you manage to get wxHaskell working on Windows, then reactive-banana will work as well. [1]: http://www.haskell.org/haskellwiki/Reactive-banana Greets, Ertugrul Rune Harder Bak r...@bak.dk

Re: [Haskell-cafe] List all multiply/add combinations

2012-11-18 Thread Rune Harder Bak
On Sun, Nov 18, 2012 at 2:04 PM, Stefan Klinger all-li...@stefan-klinger.de wrote: Sounds like you would want to enumerate all possible *abstract* syntax trees, these implicitly have exactly the necessary parentheses. I'd do this recursively, splitting the sequence of numbers in two at all

[Haskell-cafe] List all multiply/add combinations

2012-11-17 Thread Rune Harder Bak
Given a list of numbers of fixed length I need to list all possible values (and the associated computation) you get by inserting +,-,*,/ between the numbers, and also set parentheses where you please. It shouldn't list computations with unnecessary parentheses. Example list of length 3 [a,b,c] and

Re: [Haskell-cafe] List all multiply/add combinations

2012-11-17 Thread Rune Harder Bak
you. Please look at http://hackage.haskell.org/packages/archive/base/latest/doc/html/Data-List.html#v:permutations and show us your attempts to use this function. Timothy -- Původní zpráva -- Od: Rune Harder Bak r...@bak.dk Datum: 17. 11. 2012 Předmět: [Haskell-cafe

Re: [Haskell-cafe] Interest in typed relational algebra library?

2012-07-08 Thread Rune Harder Bak
Yes, that would be very nice! Type-checked queries really is a must, but I´ve found HaskellDB too cumbersome to work with. -Rune On Sat, Jul 7, 2012 at 11:45 AM, Paul Visschers m...@paulvisschers.net wrote: Hello, I've been out of the Haskell game for a bit, but now I'm back. A couple of

[Haskell-cafe] Idiomatic Aeson

2011-12-19 Thread Rune Harder Bak
Hi I'm trying to parse a nested structure using Aeson (from Facebook) It looks something like this: { education: [ { school: { name: A }, }, { concentration: [ { name: B

Re: [Haskell-cafe] Strange No instance error with cabal install

2011-09-21 Thread Rune Harder Bak
Sorry, forgot to send to the list, But everything works today, and the commit was pulled from aeson to aeson-native, so that must have been it. Thanks! On Wed, Sep 21, 2011 at 8:20 AM, Rune Harder Bak r...@bak.dk wrote: So you are saying, that this is basically because he has other version

[Haskell-cafe] Strange No instance error with cabal install

2011-09-20 Thread Rune Harder Bak
Sometimes when one of our developers (using Arch-linux) tries to cabal install packages he gets a no instance for error. Code that compiles fine on my computer, and other computers I try it on. Even some packages on hackage (trying to install aeson-native for instance gives