about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <v.ambo@me.com>2012-03-13T18·50+0100
committerVincent Ambo <v.ambo@me.com>2012-03-13T18·50+0100
commiteaa9ed5b981375167d3c0f31d6eeff84a397e547 (patch)
tree1c3ebde61b9bf51c3eec1f0cfc454e8d34bbd6ec
parent4491a9087c6ee1edbd8d4cd04b58305188929894 (diff)
* removed dependency on Network.CGI
* Cabal & License file
-rw-r--r--LICENSE1
-rw-r--r--TazBlog.cabal31
-rw-r--r--src/Main.hs2
3 files changed, 33 insertions, 1 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000000..c3b19de17059
--- /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 000000000000..2559a696132e
--- /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 3c585658a8a4..b979c3bb8ab5 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)