From 2ed17f29e65a0cab42598ebd7d646b6db5a1edea Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 16 Nov 2012 17:08:27 +0000 Subject: [PATCH] web: fix ghc/cabal warnings --- hledger-web/Foundation.hs | 3 ++- hledger-web/hledger-web.cabal | 8 ++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/hledger-web/Foundation.hs b/hledger-web/Foundation.hs index 47c5de083..aca7b17c3 100644 --- a/hledger-web/Foundation.hs +++ b/hledger-web/Foundation.hs @@ -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) diff --git a/hledger-web/hledger-web.cabal b/hledger-web/hledger-web.cabal index a53e8f4d6..28aae992a 100644 --- a/hledger-web/hledger-web.cabal +++ b/hledger-web/hledger-web.cabal @@ -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