Skip to content

Commit

Permalink
Create a basic "Hello, world!" application.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Trinkle committed Nov 15, 2013
1 parent 9fb093e commit 2cce067
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ghci
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:set -isrc
:set -XOverloadedStrings
20 changes: 20 additions & 0 deletions memoise.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Name: memoise
Version: 0.1
License: BSD3
Author: Ryan Trinkle
Maintainer: [email protected]
Stability: Experimental
Category: Web
Build-type: Simple
Cabal-version: >=1.2
Synopsis: The world's laziest hyperlink shortener
Description:
memoi.se is a URL shortener built in Haskell with the Snap framework

Executable memoise
Hs-source-dirs: src
Main-is: Main.hs
Build-depends: base >= 4 && < 5
, snap >= 0.12 && < 0.13
GHC-options: -threaded -O2
Extensions: OverloadedStrings
5 changes: 5 additions & 0 deletions src/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Snap

site = writeText "Hello, world!"

main = quickHttpServe site

0 comments on commit 2cce067

Please sign in to comment.