Haskell GUI编程工具 [英] Haskell GUI programming tools

查看:95
本文介绍了Haskell GUI编程工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能看起来很愚蠢,但对我来说这很烦人。



我在我的电脑上安装了Haskell平台,使用安装选项中的Portable选项,因为我没有管理员权限。所以总的Haskell文件现在存储在D Drive中,我可以毫无问题地使用它。但是当我在Haskell中搜索GUI编程时,我在Google中有很多文章,并且最终得出结论,我需要另一个库或工具或插件(我不知道哪一个是正确的)来编写GUI编程可能在Haskell中。
但是这里我的问题是:


  1. 什么是用于GUI编程的windows的最佳工具?

  2. 如何安装额外的库或工具并将其附加到
    可移植的Haskell平台?


解决方案

Haskell wiki有一个综合列表 Haskell的可用GUI库。



Haskell的GUI编程问题不在于缺少可用的工具和库,而是使用Haskell编写的事实通常的命令式事件驱动风格的GUI程序并没有充分利用H的功能特性askell。

有很多方法可以解决这个问题,但据我所知,他们几乎都处于研究阶段,意思是它们还没有像主流(非功能性)技术那样成熟(在理论上和实践中)。如果你对这个方向感兴趣,可以看看该wiki页面中列出的一些功能反应性项目,以及 cabal ,它包含在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?

解决方案

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.

这篇关于Haskell GUI编程工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆