[build] Use Stack for building
This commit is contained in:
parent
3a86d653ce
commit
853be2a99c
5 changed files with 55 additions and 36 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ BlogState/
|
|||
dist/
|
||||
.cabal-sandbox/
|
||||
*.tar.gz
|
||||
.stack-work/
|
||||
|
|
|
@ -14,37 +14,37 @@ Executable tazblog
|
|||
hs-source-dirs: src
|
||||
main-is: Main.hs
|
||||
ghc-options: -O2
|
||||
Build-depends:
|
||||
base,
|
||||
bytestring,
|
||||
happstack-server,
|
||||
text,
|
||||
blaze-html,
|
||||
blaze-markup,
|
||||
crypto-api,
|
||||
cryptohash,
|
||||
old-locale,
|
||||
time,
|
||||
base64-bytestring,
|
||||
acid-state,
|
||||
ixset,
|
||||
safecopy,
|
||||
mtl,
|
||||
transformers,
|
||||
network,
|
||||
options,
|
||||
rss,
|
||||
hamlet,
|
||||
shakespeare,
|
||||
markdown
|
||||
Build-depends: base,
|
||||
bytestring,
|
||||
happstack-server,
|
||||
text,
|
||||
blaze-html,
|
||||
blaze-markup,
|
||||
crypto-api,
|
||||
cryptohash,
|
||||
old-locale,
|
||||
time,
|
||||
base64-bytestring,
|
||||
acid-state,
|
||||
ixset,
|
||||
safecopy,
|
||||
mtl,
|
||||
transformers,
|
||||
network,
|
||||
network-uri,
|
||||
options,
|
||||
rss,
|
||||
hamlet,
|
||||
shakespeare,
|
||||
markdown
|
||||
extensions:
|
||||
DeriveDataTypeable
|
||||
FlexibleContexts
|
||||
GeneralizedNewtypeDeriving
|
||||
MultiParamTypeClasses
|
||||
OverloadedStrings
|
||||
RecordWildCards
|
||||
ScopedTypeVariables
|
||||
TemplateHaskell
|
||||
TypeFamilies
|
||||
QuasiQuotes
|
||||
DeriveDataTypeable
|
||||
FlexibleContexts
|
||||
GeneralizedNewtypeDeriving
|
||||
MultiParamTypeClasses
|
||||
OverloadedStrings
|
||||
RecordWildCards
|
||||
ScopedTypeVariables
|
||||
TemplateHaskell
|
||||
TypeFamilies
|
||||
QuasiQuotes
|
||||
|
|
|
@ -10,7 +10,6 @@ import Data.Text (Text, append, empty, pack)
|
|||
import Data.Text.Lazy (fromStrict)
|
||||
import Data.Time
|
||||
import Locales
|
||||
import System.Locale (defaultTimeLocale)
|
||||
import Text.Blaze.Html (preEscapedToHtml)
|
||||
import Text.Hamlet
|
||||
import Text.Lucius
|
||||
|
@ -30,7 +29,7 @@ show' = pack . show
|
|||
|
||||
-- |After this time all entries are Markdown
|
||||
markdownCutoff :: UTCTime
|
||||
markdownCutoff = fromJust $ parseTime defaultTimeLocale "%s" "1367149834"
|
||||
markdownCutoff = fromJust $ parseTimeM False defaultTimeLocale "%s" "1367149834"
|
||||
|
||||
|
||||
-- blog CSS (admin is still static)
|
||||
|
|
|
@ -16,7 +16,6 @@ import qualified Data.Text as T
|
|||
import Data.Time
|
||||
import Happstack.Server hiding (Session)
|
||||
import Happstack.Server.Compression
|
||||
import System.Locale (defaultTimeLocale)
|
||||
|
||||
import Blog
|
||||
import BlogDB hiding (updateEntry)
|
||||
|
|
20
stack.yaml
Normal file
20
stack.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
# For more information, see: https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md
|
||||
|
||||
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
|
||||
resolver: lts-3.14
|
||||
|
||||
# Local packages, usually specified by relative directory name
|
||||
packages:
|
||||
- '.'
|
||||
|
||||
# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
|
||||
extra-deps:
|
||||
- ixset-1.0.6
|
||||
- syb-with-class-0.6.1.6 # needed by ixset
|
||||
- rss-3000.2.0.5
|
||||
|
||||
# Override default flag values for local packages and extra-deps
|
||||
flags: {}
|
||||
|
||||
# Extra package databases containing global packages
|
||||
extra-package-dbs: []
|
Loading…
Reference in a new issue