From eaa9ed5b981375167d3c0f31d6eeff84a397e547 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 13 Mar 2012 19:50:13 +0100 Subject: [PATCH] * removed dependency on Network.CGI * Cabal & License file --- LICENSE | 1 + TazBlog.cabal | 31 +++++++++++++++++++++++++++++++ src/Main.hs | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 LICENSE create mode 100644 TazBlog.cabal diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..c3b19de17 --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +I don't feel like writing a license for this. Do whatever you want with this, but credit me. \ No newline at end of file diff --git a/TazBlog.cabal b/TazBlog.cabal new file mode 100644 index 000000000..2559a6961 --- /dev/null +++ b/TazBlog.cabal @@ -0,0 +1,31 @@ +Name: TazBlog +Version: 3.0 +Synopsis: Tazjin's Blog +License-file: LICENSE +Author: Vincent Ambo +Maintainer: tazjin@gmail.com +Category: Web blog +Build-type: Simple +cabal-version: >= 1.2 + + +Executable tazblog + hs-source-dirs: src + main-is: Main.hs + + Build-depends: + base, + bytestring, + happstack-server, + text, + blaze-html, + crypto-api, + cryptohash, + old-locale, + time, + base64-bytestring, + acid-state, + ixset, + safecopy, + mtl, + transformers \ No newline at end of file diff --git a/src/Main.hs b/src/Main.hs index 3c585658a..b979c3bb8 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -7,6 +7,7 @@ module Main where import Control.Applicative ((<$>), (<*>), optional, pure) import Control.Exception (bracket) import Control.Monad (msum, mzero, when, unless) +import Control.Monad.IO.Class (liftIO) import Control.Monad.State (get, put) import Control.Monad.Reader (ask) import qualified Crypto.Hash.SHA512 as SHA @@ -22,7 +23,6 @@ import qualified Data.Text as T import Data.Time import Data.SafeCopy (base, deriveSafeCopy) import Happstack.Server hiding (Session) -import Network.CGI (liftIO) import System.Environment(getEnv) import System.Locale (defaultTimeLocale)