Haskell GUI programming tools

前端 未结 1 486
逝去的感伤
逝去的感伤 2021-02-19 06:51

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 ha

相关标签:
1条回答
  • 2021-02-19 07:43

    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.

    0 讨论(0)
提交回复
热议问题