web: fix more ghc 7.10 import warnings (#239)
This commit is contained in:
		
							parent
							
								
									724bc3c9e9
								
							
						
					
					
						commit
						ebba1b09f2
					
				| @ -8,7 +8,9 @@ See a default Yesod app's comments for more details of each part. | ||||
| module Foundation where | ||||
| 
 | ||||
| import Prelude | ||||
| #if !MIN_VERSION_base(4,8,0) | ||||
| import Control.Applicative ((<$>)) | ||||
| #endif | ||||
| import Data.IORef | ||||
| import Yesod | ||||
| import Yesod.Static | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| {-# LANGUAGE FlexibleContexts, OverloadedStrings, QuasiQuotes, RecordWildCards #-} | ||||
| {-# LANGUAGE CPP, FlexibleContexts, OverloadedStrings, QuasiQuotes, RecordWildCards #-} | ||||
| -- | Add form data & handler. (The layout and js are defined in | ||||
| -- Foundation so that the add form can be in the default layout for | ||||
| -- all views.) | ||||
| @ -7,7 +7,9 @@ module Handler.AddForm where | ||||
| 
 | ||||
| import Import | ||||
| 
 | ||||
| #if !MIN_VERSION_base(4,8,0) | ||||
| import Control.Applicative | ||||
| #endif | ||||
| import Data.Either (lefts,rights) | ||||
| import Data.List (sort) | ||||
| import qualified Data.List as L (head) -- qualified keeps dev & prod builds warning-free | ||||
|  | ||||
| @ -20,7 +20,9 @@ import Network.Wai.Handler.Warp (runSettings, defaultSettings, setPort) | ||||
| import Network.Wai.Handler.Launch (runUrlPort) | ||||
| -- | ||||
| import Prelude hiding (putStrLn) | ||||
| #if !MIN_VERSION_base(4,8,0) | ||||
| import Control.Applicative ((<$>)) | ||||
| #endif | ||||
| import Control.Monad (when) | ||||
| import Data.Text (pack) | ||||
| import System.Exit (exitSuccess) | ||||
|  | ||||
| @ -2,7 +2,9 @@ | ||||
| module Hledger.Web.Options | ||||
| where | ||||
| import Prelude | ||||
| #if !MIN_VERSION_base(4,8,0) | ||||
| import Control.Applicative ((<$>)) | ||||
| #endif | ||||
| import Data.Maybe | ||||
| import System.Console.CmdArgs | ||||
| import System.Console.CmdArgs.Explicit | ||||
|  | ||||
| @ -7,7 +7,9 @@ import           Prelude              as Import hiding (head, init, last, | ||||
|                                                  readFile, tail, writeFile) | ||||
| import           Yesod                as Import hiding (Route (..)) | ||||
| 
 | ||||
| #if !MIN_VERSION_base(4,8,0) | ||||
| import           Control.Applicative  as Import (pure, (<$>), (<*>)) | ||||
| #endif | ||||
| import           Data.Text            as Import (Text) | ||||
| 
 | ||||
| import           Foundation           as Import | ||||
| @ -16,8 +18,10 @@ import           Settings.Development as Import | ||||
| import           Settings.StaticFiles as Import | ||||
| 
 | ||||
| #if __GLASGOW_HASKELL__ >= 704 | ||||
| import           Data.Monoid          as Import | ||||
|                                                  (Monoid (mappend, mempty, mconcat), | ||||
| import           Data.Monoid          as Import ( | ||||
| #if !MIN_VERSION_base(4,8,0) | ||||
|                                                  Monoid (mappend, mempty, mconcat), | ||||
| #endif | ||||
|                                                  (<>)) | ||||
| #else | ||||
| import           Data.Monoid          as Import | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| {-# LANGUAGE OverloadedStrings, QuasiQuotes #-} | ||||
| {-# LANGUAGE CPP, OverloadedStrings, QuasiQuotes #-} | ||||
| -- | Settings are centralized, as much as possible, into this file. This | ||||
| -- includes database connection settings, static file locations, etc. | ||||
| -- In addition, you can configure a number of different aspects of Yesod | ||||
| @ -13,7 +13,9 @@ import Yesod.Default.Config | ||||
| import Yesod.Default.Util | ||||
| import Data.Text (Text) | ||||
| import Data.Yaml | ||||
| #if !MIN_VERSION_base(4,8,0) | ||||
| import Control.Applicative | ||||
| #endif | ||||
| import Settings.Development | ||||
| import Data.Default (def) | ||||
| import Text.Hamlet | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user