web: fix ghc/cabal warnings

This commit is contained in:
Simon Michael 2012-11-16 17:08:27 +00:00
parent a39b8f652a
commit 2ed17f29e6
2 changed files with 4 additions and 7 deletions

View File

@ -17,8 +17,9 @@ import Network.HTTP.Conduit (Manager)
-- import qualified Settings
import Settings.Development (development)
import Settings.StaticFiles
import Settings ({-widgetFile,-} Extra (..), staticDir)
import Settings ({-widgetFile,-} Extra (..))
#ifndef DEVELOPMENT
import Settings (staticDir)
import Text.Jasmine (minifym)
#endif
import Web.ClientSession (getKey)

View File

@ -77,19 +77,15 @@ library
Hledger.Web.Main
Hledger.Web.Options
-- ghc-options: -Wall -O0 -fno-warn-unused-do-bind
cpp-options: -DVERSION="0.19" -DDEVELOPMENT
-- if flag(library-only)
-- Buildable: True
-- else
-- Buildable: False
ghc-options: -Wall -fno-warn-unused-do-bind
cpp-options: -DVERSION="0.19"
if flag(dev) || flag(library-only)
cpp-options: -DDEVELOPMENT
ghc-options: -Wall -O0
else
ghc-options: -Wall -O2
extensions: TemplateHaskell
QuasiQuotes