Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell GUI programming tools

Tags:

haskell

This might seems silly question but for me it is annoying.

I have installed Haskell platform in my PC using Portable option from the installation options as I do not have admin privileges. So the total Haskell files are now stored in D Drive and I am able to use this without any problems. But when I search for GUI programming in Haskell I have got many articles in Google and I came to final conclusion that I need another library or tool or plugin(I dont know which is correct) to make GUI programming possible in Haskell.
But here my questions are:

  1. What are best tools for windows for GUI programming?
  2. How to install the extra library or tool and attach it to portable Haskell platform?
like image 854
Exception Avatar asked Dec 27 '11 06:12

Exception


People also ask

Can you make a GUI with Haskell?

Indeed, several libraries are available to create GUI in Haskell: wx — bindings to wxWidgets.

Does Haskell have libraries?

On top of the Core Libraries, the Haskell Platform comes preinstalled with some additional packages that together form the Haskell Platform libraries. These libraries have been thoroughly tested before being included. The addition of these libraries with the Haskell Platform is what makes it 'batteries included'.


1 Answers

The Haskell wiki has a comprehensive list of available GUI libraries for Haskell.

The problem with GUI programming in Haskell is not so much the lack of available tools and libraries, but the fact that using Haskell to write GUI programs in the usual imperative event driven style doesn't take full advantage of the functional nature of Haskell.

There are a number of approaches aiming to address this problem, but, as far as I know, they are all pretty much at the "research" stage, meaning they are not yet quite as mature (both in theory and in practice) as the mainstream (non-functional) techniques. If you are interested in this direction, take a look at some of the functional reactive projects listed in that wiki page, as well as reactive-banana.

As for your second question (how to install Haskell libraries), you can use cabal, which is included in the Haskell Platform. This page explains how to install packages with it.

like image 114
Paolo Capriotti Avatar answered Oct 04 '22 15:10

Paolo Capriotti