[5.0-beta] Split into library and executable
This commit is contained in:
		
							parent
							
								
									71b2ccd927
								
							
						
					
					
						commit
						0f6ff6310e
					
				
					 3 changed files with 19 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -14,7 +14,7 @@ import           BlogDB      (BlogLang (..))
 | 
			
		|||
 | 
			
		||||
data BlogError = NotFound | DBError
 | 
			
		||||
 | 
			
		||||
version = "4.2"
 | 
			
		||||
version = "5.0-beta"
 | 
			
		||||
 | 
			
		||||
allLang = [EN, DE]
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue