summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--blog/Main.hs (renamed from src/Main.hs)0
-rw-r--r--src/Locales.hs2
-rw-r--r--tazblog.cabal (renamed from TazBlog.cabal)28
3 files changed, 19 insertions, 11 deletions
diff --git a/src/Main.hs b/blog/Main.hs
index a50ca67ed17d..a50ca67ed17d 100644
--- a/src/Main.hs
+++ b/blog/Main.hs
diff --git a/src/Locales.hs b/src/Locales.hs
index b387171abe63..e4aaca5b1ef8 100644
--- a/src/Locales.hs
+++ b/src/Locales.hs
@@ -14,7 +14,7 @@ import           BlogDB      (BlogLang (..))
 
 data BlogError = NotFound | DBError
 
-version = "4.2"
+version = "5.0-beta"
 
 allLang = [EN, DE]
 
diff --git a/TazBlog.cabal b/tazblog.cabal
index f3daba16f712..6bbe2c01f0ef 100644
--- a/TazBlog.cabal
+++ b/tazblog.cabal
@@ -1,5 +1,5 @@
-Name:                TazBlog
-Version:             4.2
+Name:                tazblog
+Version:             5.0-beta
 Synopsis:            Tazjin's Blog
 License:             MIT
 License-file:        LICENSE
@@ -7,14 +7,13 @@ Author:              Vincent Ambo
 Maintainer:          tazjin@gmail.com
 Category:            Web blog
 Build-type:          Simple
-cabal-version:       >= 1.2
+cabal-version:       >= 1.10
 
-
-Executable tazblog
+library
   hs-source-dirs: src
-  main-is: Main.hs
-  ghc-options: -O2
-  Build-depends: base,
+  default-language:    Haskell2010
+  exposed-modules: Blog, BlogDB, Locales, Server, RSS
+  build-depends: base,
                  bytestring,
                  happstack-server,
                  text,
@@ -32,12 +31,11 @@ Executable tazblog
                  transformers,
                  network,
                  network-uri,
-                 options,
                  rss,
                  hamlet,
                  shakespeare,
                  markdown
-  extensions:
+  default-extensions:
              DeriveDataTypeable
              FlexibleContexts
              GeneralizedNewtypeDeriving
@@ -48,3 +46,13 @@ Executable tazblog
              TemplateHaskell
              TypeFamilies
              QuasiQuotes
+
+executable tazblog
+  hs-source-dirs: blog
+  main-is: Main.hs
+  default-language:    Haskell2010
+  ghc-options: -threaded -rtsopts -with-rtsopts=-N
+  build-depends: base,
+                 acid-state,
+                 tazblog,
+                 options