hscurses或ncurses的,使用哪一个? [英] hscurses or ncurses, which one to use?
问题描述
我正在写一个程序,它需要一个UI。该计划是在Haskell。对于UI,我想用ncurses库的。我应该使用hscurses库Haskell和哈斯克尔编写UI,或者我应该使用ncurses库和C编写的用户界面,并从C调用的Haskell函数?结果
这是最preferred方式?
I'm writing a program which needs a UI. The program is in haskell. For the UI, I think of using ncurses library. Should I use hscurses library for haskell and write the UI in haskell or should I use ncurses library and write the UI in C and call haskell functions from C?
Which is the most preferred way?
推荐答案
我没有看到C语言编写的UI的优势,从C调用函数
I don't see any advantages in writing the UI in C and call functions from C.
您可以选择您将如何从 Hackage 几个可用的库做UI:
You can choose how you are going to do the UI from several libraries available on Hackage :
- hscurses
- ncurses
- nanocurses
- vty and vty-ui
- ansi-terminal (on windows)
我不知道哪个好,有一个<一个href=\"http://www.haskell.org/haskellwiki/Applications_and_libraries/GUI_libraries#Uncategorized\">small说明但还不够。 Nanocurses似乎更便携,但用量少的特点。
I don't know which is better, there's a small description but not enough. Nanocurses seems more portable but with less features.
这篇关于hscurses或ncurses的,使用哪一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!