diff --git a/.ghci b/.ghci new file mode 100644 index 0000000..0bfc9da --- /dev/null +++ b/.ghci @@ -0,0 +1,2 @@ +:set -isrc +:set -XOverloadedStrings diff --git a/memoise.cabal b/memoise.cabal new file mode 100644 index 0000000..5188ad6 --- /dev/null +++ b/memoise.cabal @@ -0,0 +1,20 @@ +Name: memoise +Version: 0.1 +License: BSD3 +Author: Ryan Trinkle +Maintainer: ryan.trinkle@gmail.com +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 diff --git a/src/Main.hs b/src/Main.hs new file mode 100644 index 0000000..ab9860a --- /dev/null +++ b/src/Main.hs @@ -0,0 +1,5 @@ +import Snap + +site = writeText "Hello, world!" + +main = quickHttpServe site