2014-08-09 18:33:22 +00:00
|
|
|
name: eidolon
|
|
|
|
version: 0.0.0
|
|
|
|
cabal-version: >= 1.8
|
|
|
|
build-type: Simple
|
|
|
|
|
|
|
|
Flag dev
|
|
|
|
Description: Turn on development settings, like auto-reload templates.
|
|
|
|
Default: False
|
|
|
|
|
|
|
|
Flag library-only
|
|
|
|
Description: Build for use with "yesod devel"
|
|
|
|
Default: False
|
|
|
|
|
|
|
|
library
|
|
|
|
exposed-modules: Application
|
|
|
|
Foundation
|
|
|
|
Import
|
|
|
|
Model
|
|
|
|
Settings
|
|
|
|
Settings.StaticFiles
|
|
|
|
Settings.Development
|
|
|
|
Handler.Home
|
2014-08-12 12:37:31 +00:00
|
|
|
Handler.Signup
|
|
|
|
Handler.Login
|
|
|
|
Handler.Activate
|
2014-08-12 21:45:33 +00:00
|
|
|
Handler.Profile
|
|
|
|
Handler.Upload
|
2014-08-13 22:49:37 +00:00
|
|
|
Handler.NewAlbum
|
2014-08-09 18:33:22 +00:00
|
|
|
|
|
|
|
if flag(dev) || flag(library-only)
|
|
|
|
cpp-options: -DDEVELOPMENT
|
|
|
|
ghc-options: -Wall -O0
|
|
|
|
else
|
|
|
|
ghc-options: -Wall -O2
|
|
|
|
|
|
|
|
extensions: TemplateHaskell
|
|
|
|
QuasiQuotes
|
|
|
|
OverloadedStrings
|
|
|
|
NoImplicitPrelude
|
|
|
|
CPP
|
|
|
|
MultiParamTypeClasses
|
|
|
|
TypeFamilies
|
|
|
|
GADTs
|
|
|
|
GeneralizedNewtypeDeriving
|
|
|
|
FlexibleContexts
|
|
|
|
EmptyDataDecls
|
|
|
|
NoMonomorphismRestriction
|
|
|
|
DeriveDataTypeable
|
|
|
|
|
2014-08-12 12:42:25 +00:00
|
|
|
build-depends: base >= 4
|
|
|
|
, yesod >= 1.2.5
|
|
|
|
, yesod-core >= 1.2.12
|
|
|
|
, yesod-auth >= 1.3
|
|
|
|
, yesod-static >= 1.2
|
|
|
|
, yesod-form >= 1.3
|
|
|
|
, bytestring >= 0.9
|
|
|
|
, text >= 0.11
|
|
|
|
, persistent >= 1.3
|
|
|
|
, persistent-sqlite >= 1.3
|
|
|
|
, persistent-template >= 1.3
|
2014-08-09 18:33:22 +00:00
|
|
|
, template-haskell
|
2014-08-12 12:42:25 +00:00
|
|
|
, shakespeare >= 2.0
|
|
|
|
, hjsmin >= 0.1
|
|
|
|
, monad-control >= 0.3
|
|
|
|
, wai-extra >= 3.0
|
|
|
|
, yaml >= 0.8
|
|
|
|
, http-conduit >= 2.1
|
|
|
|
, directory >= 1.1
|
|
|
|
, warp >= 3.0
|
2014-08-09 18:33:22 +00:00
|
|
|
, data-default
|
2014-08-12 12:42:25 +00:00
|
|
|
, aeson >= 0.6
|
|
|
|
, conduit >= 1.0
|
|
|
|
, monad-logger >= 0.3
|
|
|
|
, fast-logger >= 2.1.4
|
|
|
|
, wai-logger >= 2.1
|
|
|
|
-- custom dependencies
|
|
|
|
, random
|
|
|
|
, mime-mail
|
|
|
|
, blaze-html
|
|
|
|
, filepath
|
|
|
|
, time
|
2014-08-09 18:33:22 +00:00
|
|
|
|
|
|
|
executable eidolon
|
|
|
|
if flag(library-only)
|
|
|
|
Buildable: False
|
|
|
|
|
|
|
|
main-is: main.hs
|
|
|
|
hs-source-dirs: app
|
|
|
|
build-depends: base
|
|
|
|
, eidolon
|
|
|
|
, yesod
|
|
|
|
|
|
|
|
ghc-options: -threaded -O2
|
|
|
|
|
|
|
|
test-suite test
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: main.hs
|
|
|
|
hs-source-dirs: tests
|
|
|
|
ghc-options: -Wall
|
|
|
|
|
|
|
|
build-depends: base
|
|
|
|
, eidolon
|
|
|
|
, yesod-test >= 1.2 && < 1.3
|
|
|
|
, yesod-core
|
|
|
|
, yesod
|
|
|
|
, persistent
|
|
|
|
, persistent-sqlite
|
|
|
|
, resourcet
|
|
|
|
, monad-logger
|
|
|
|
, transformers
|
|
|
|
, hspec
|