packages feed

notmuch-web-0.1.0: notmuch-web.cabal

name:              notmuch-web
version:           0.1.0
cabal-version:     >= 1.8
build-type:        Simple
synopsis:          A web interface to the notmuch email indexer
category:          Web
author:            John Lenz <lenz@math.uic.edu>
maintainer:        John Lenz <lenz@math.uic.edu>
license:           GPL
license-file:      LICENSE
homepage:          https://bitbucket.org/wuzzeb/notmuch-web
stability:         Experimental
description:       An email client for the notmuch email indexer (<http://notmuchmail.org>),
                   built using Yesod.  This project implements a web server and uses bootstrap
                   and jquery for the UI.  The client is fully functional, with searching, viewing,
                   and composing email messages.

data-files: README.md
            config/favicon.ico
            config/robots.txt
            config/settings.yml
            static/css/*.min.css
            static/js/*.min.js
            static/js/*.js
            static/img/*.png

extra-source-files: config/keter.yaml
                    config/routes
                    messages/en.msg
                    templates/*.hamlet
                    templates/*.cassius
                    templates/*.julius
                    templates/*.lucius
                    devel.hs
                    package.sh

source-repository head
    type: mercurial
    location: https://bitbucket.org/wuzzeb/notmuch-web

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
    hs-source-dirs:  src
    exposed-modules: Application
                     Foundation
                     Import
                     Settings
                     StaticFiles
                     NotmuchCmd
                     Handler.Home
                     Handler.Tags
                     Handler.View
                     Handler.Pager
                     Handler.Raw
                     Handler.Compose

    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

    build-depends: base                          >= 4          && < 5
                 , yesod-platform                >= 1.1.6      && < 1.2

                 , aeson
                 , attoparsec
                 , attoparsec-conduit
                 , blaze-builder
                 , blaze-markup
                 , bytestring
                 , case-insensitive
                 , clientsession
                 , conduit
                 , containers
                 , data-default
                 , directory
                 , email-validate
                 , filepath
                 , hamlet
                 , hjsmin
                 , http-conduit
                 , http-types
                 , lifted-base
                 , mime-mail
                 , monad-control
                 , old-locale
                 , process
                 , process-conduit               >= 0.5        && < 0.6
                 , pwstore-fast
                 , random
                 , shakespeare-css
                 , shakespeare-js
                 , shakespeare-text
                 , template-haskell
                 , text
                 , time
                 , transformers
                 , unordered-containers
                 , vector
                 , wai
                 , wai-extra
                 , warp
                 , yaml
                 , yesod
                 , yesod-auth
                 , yesod-core
                 , yesod-default
                 , yesod-form
                 , yesod-static

executable         notmuch-web
    if flag(library-only)
        Buildable: False

    main-is:           main.hs
    build-depends:     base
                     , notmuch-web
                     , pwstore-fast
                     , text
                     , yesod-default

    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
                 , notmuch-web
                 , yesod-test
                 , yesod-default
                 , yesod-core