
Hi
I'm trying to create a calculator in Haskell, something like the one
in the enclosed image. To program the gui , I thought i might use a
toolkit such as wxHaskell to create the buttons and frame etc.. I
followed all the instructions on the wxHaskell homepage and everything
seemed to install properly. Next I tried to use it with ghci, but to no
avail. It seems you have to register wxHaskell with ghci by using a
command like

Hi Andy,
Andy
[...] Also, is there a better toolkit for doing guis than wxHaskell? I tried Glade, but it's so bug-ridden I couldn't get anything done. I need help.
If you're OK with just doing some GUI programming, and don't mind if it's not wxHaskell, try out HTk ( http://www.informatik.uni-bremen.de/htk/ ). It's outdated, but it's quick and easy to set up with Cabal and it works. I even did a very simple reverse-polish notation calculator using it ( https://github.com/yawaramin/HTkalc/blob/master/HTkalc.hs ). Although mine has a pretty serious bug--it only takes single-digit numbers as input right now. Still, it should give you a feel for the toolkit if you're interested. Regards, Yawar
participants (2)
-
Andy
-
Yawar Amin