Haskell Web开发的生态系统是什么? [英] What is the ecosystem for Haskell web development?

查看:103
本文介绍了Haskell Web开发的生态系统是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题和最近的启发绯闻,我想知道涉及什么与Haskell网络开发。


  • 是否有Haskell网络框架或模板引擎?

  • 如何托管一个Haskell网站,是否有合适的网络服务器?

  • Haskell对于通常在Web开发中常用的快速开发和基于原型的工作流程来说太复杂了吗?

  • 有没有现有的Haskell Web应用程序的例子?
  • 首先,一个免责声明:我从来没有做过任何Haskell网络开发,所以我不会从经验中发表意见。



    如果你看看<关于Hackage的网络类别,有许多与网络相关的内容我认为大多数Haskell Web应用程序都运行在自定义服务器上(可能使用Apache的 mod_proxy 或IIS的高级请求作为前端路由)。但是,也有一些FastCGI绑定。



    最显着的Haskell网络服务器/框架/数据存储基础结构是 Happstack ,有几个原因很有意思,最明显的一点是它将所有状态存储在内存中,并且不使用关系数据库。



    另一个最近的网络服务器界面是黑客,我不知道除了1分钟的教程看起来很有趣之外,还有很多关于它的内容。



    Haskell中有更多的webservers /框架,但这两个只是我所知道的顶级域名头。

    Inspired by this question and a recent affair, I'm wondering what's involved with Haskell web development.

    • Are there any Haskell web frameworks or template engines?
    • How would hosting a Haskell site work, are there suitable web servers?
    • Is Haskell too complex for the usual rapid development and prototyping based workflow often used in web development?
    • Are there examples of existing Haskell web applications?

    解决方案

    First of all, a disclaimer: I've never done any Haskell web development, so I don't speak from experience.

    If you look at the Web category on Hackage, there are lots of web-related packages.

    I think most Haskell web application run on a custom server (possibly using Apache's mod_proxy or IIS's Advanced Request Routing as a front end). However, there are also some FastCGI bindings.

    The most prominent Haskell webserver/framework/datastorage infrastruction is Happstack, which is interesting for several reasons, the most obvious being that it stores all its state in-memory and doesn't use a relational database.

    Another more recent webserver interface is hack, which I don't know much about except that the 1 minute tutorial looks interesting.

    There are many more webservers/frameworks in Haskell, but these two are just the ones I know of the top of my head.

    这篇关于Haskell Web开发的生态系统是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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