“Hello world!”in Haskell

Everyone wants “hello world”application for being convinced,that the thing can work. Here is one written in Haskell and web-related. It’s quite straight-forward:

import Network.FastCGIimport Text.XHtmlhtmlPage = header  <<thetitle <<"Hello World!" +++ body ! [ bgcolor "white"] <<"Hi"main = runFastCGIorCGI (output (renderHtml htmlPage))

To make it working,you need GHC and fastcgi library (with all it’s dependencies)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • DZone
  • FriendFeed
  • Reddit
  • Tumblr
  • Twitter
Liked this post? Follow me on twitter:@jimi_dini.

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna.