name: bar version: 0.6.6 flags: dev: description: Turn on development settings default: false manual: false library-only: description: Build for use with "yesod devel" default: false manual: false thermoprint: description: Use thermoprint-client default: false manual: false when: - condition: flag(dev) || flag(library-only) then: cpp-options: -DDEVELOPMENT ghc-options: -Wall -fwarn-tabs -O0 else: ghc-options: -Wall -fwarn-tabs -O2 - condition: flag(thermoprint) cpp-options: -DTHERMOPRINT dependencies: - thermoprint-client default-extensions: - DeriveGeneric - TupleSections - RecordWildCards - DeriveDataTypeable - EmptyDataDecls - FlexibleContexts - FlexibleInstances - TypeFamilies - MultiParamTypeClasses - NoImplicitPrelude - PatternGuards - DeriveFunctor - GADTs - CPP - TemplateHaskell - ViewPatterns - PatternGuards - QuasiQuotes - FunctionalDependencies - OverloadedStrings other-extensions: - GeneralizedNewtypeDeriving - ApplicativeDo - PackageImports library: source-dirs: . dependencies: - base - yesod - yesod-core - yesod-static - yesod-form - classy-prelude - classy-prelude-yesod - bytestring - text - persistent - persistent-postgresql - persistent-template - template-haskell - shakespeare - wai-extra - yaml - http-conduit - warp - aeson - conduit - monad-logger - fast-logger - wai-logger - file-embed - unordered-containers - containers - vector - time - wai - mtl - lens - hashids - systemd executables: bar: when: - condition: flag(library-only) buildable: false main: main.hs source-dirs: app dependencies: - base - bar - foreign-store - warp ghc-options: -threaded -rtsopts -with-rtsopts=-N