[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
 | 
					data BlogError = NotFound | DBError
 | 
				
			||||||
 | 
					
 | 
				
			||||||
version = "4.2"
 | 
					version = "5.0-beta"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
allLang = [EN, DE]
 | 
					allLang = [EN, DE]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
Name:                TazBlog
 | 
					Name:                tazblog
 | 
				
			||||||
Version:             4.2
 | 
					Version:             5.0-beta
 | 
				
			||||||
Synopsis:            Tazjin's Blog
 | 
					Synopsis:            Tazjin's Blog
 | 
				
			||||||
License:             MIT
 | 
					License:             MIT
 | 
				
			||||||
License-file:        LICENSE
 | 
					License-file:        LICENSE
 | 
				
			||||||
| 
						 | 
					@ -7,14 +7,13 @@ Author:              Vincent Ambo
 | 
				
			||||||
Maintainer:          tazjin@gmail.com
 | 
					Maintainer:          tazjin@gmail.com
 | 
				
			||||||
Category:            Web blog
 | 
					Category:            Web blog
 | 
				
			||||||
Build-type:          Simple
 | 
					Build-type:          Simple
 | 
				
			||||||
cabal-version:       >= 1.2
 | 
					cabal-version:       >= 1.10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					library
 | 
				
			||||||
Executable tazblog
 | 
					 | 
				
			||||||
  hs-source-dirs: src
 | 
					  hs-source-dirs: src
 | 
				
			||||||
  main-is: Main.hs
 | 
					  default-language:    Haskell2010
 | 
				
			||||||
  ghc-options: -O2
 | 
					  exposed-modules: Blog, BlogDB, Locales, Server, RSS
 | 
				
			||||||
  Build-depends: base,
 | 
					  build-depends: base,
 | 
				
			||||||
                 bytestring,
 | 
					                 bytestring,
 | 
				
			||||||
                 happstack-server,
 | 
					                 happstack-server,
 | 
				
			||||||
                 text,
 | 
					                 text,
 | 
				
			||||||
| 
						 | 
					@ -32,12 +31,11 @@ Executable tazblog
 | 
				
			||||||
                 transformers,
 | 
					                 transformers,
 | 
				
			||||||
                 network,
 | 
					                 network,
 | 
				
			||||||
                 network-uri,
 | 
					                 network-uri,
 | 
				
			||||||
                 options,
 | 
					 | 
				
			||||||
                 rss,
 | 
					                 rss,
 | 
				
			||||||
                 hamlet,
 | 
					                 hamlet,
 | 
				
			||||||
                 shakespeare,
 | 
					                 shakespeare,
 | 
				
			||||||
                 markdown
 | 
					                 markdown
 | 
				
			||||||
  extensions:
 | 
					  default-extensions:
 | 
				
			||||||
             DeriveDataTypeable
 | 
					             DeriveDataTypeable
 | 
				
			||||||
             FlexibleContexts
 | 
					             FlexibleContexts
 | 
				
			||||||
             GeneralizedNewtypeDeriving
 | 
					             GeneralizedNewtypeDeriving
 | 
				
			||||||
| 
						 | 
					@ -48,3 +46,13 @@ Executable tazblog
 | 
				
			||||||
             TemplateHaskell
 | 
					             TemplateHaskell
 | 
				
			||||||
             TypeFamilies
 | 
					             TypeFamilies
 | 
				
			||||||
             QuasiQuotes
 | 
					             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