Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
/ simple Public

A minimal Haskell web-framework based on the WAI web server interface.

Notifications You must be signed in to change notification settings

alevy/simple

Open more actions menu

Repository files navigation

Simple is "framework-less" web framework for Haskell web applications using the WAI server interface (e.g. for use with the warp server). Unlike other frameworks, Simple does not enforce a particular structure or paradigm for web applications. Rather, Simple makes it easier for you, the developer, to use whichever paradigm or structure you like. This package includes:

  • Web application building blocks under Web.Simple

  • A Sintra inspired DSL - Web.Frank

  • A Monad for building RESTful controllers - Web.REST

To get started using the warp web server:

$ cabal install simple warp

helloworld.hs:

import Web.Simple
import Network.Wai.Handler.Warp

main :: IO ()
main = runSettings defaultSettings $ mkRouter $
        okHtml "Hello World"

Then:

$ runghc -XOverloadedStrings helloworld.hs@

See Web.Simple for a more detailed introduction.

Join the chat at https://gitter.im/alevy/simple

About

A minimal Haskell web-framework based on the WAI web server interface.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Morty Proxy This is a proxified and sanitized view of the page, visit original site.