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
|
module Foundation where
|
||||||
|
|
||||||
import Prelude
|
import Prelude
|
||||||
|
#if !MIN_VERSION_base(4,8,0)
|
||||||
import Control.Applicative ((<$>))
|
import Control.Applicative ((<$>))
|
||||||
|
#endif
|
||||||
import Data.IORef
|
import Data.IORef
|
||||||
import Yesod
|
import Yesod
|
||||||
import Yesod.Static
|
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
|
-- | Add form data & handler. (The layout and js are defined in
|
||||||
-- Foundation so that the add form can be in the default layout for
|
-- Foundation so that the add form can be in the default layout for
|
||||||
-- all views.)
|
-- all views.)
|
||||||
@ -7,7 +7,9 @@ module Handler.AddForm where
|
|||||||
|
|
||||||
import Import
|
import Import
|
||||||
|
|
||||||
|
#if !MIN_VERSION_base(4,8,0)
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
|
#endif
|
||||||
import Data.Either (lefts,rights)
|
import Data.Either (lefts,rights)
|
||||||
import Data.List (sort)
|
import Data.List (sort)
|
||||||
import qualified Data.List as L (head) -- qualified keeps dev & prod builds warning-free
|
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 Network.Wai.Handler.Launch (runUrlPort)
|
||||||
--
|
--
|
||||||
import Prelude hiding (putStrLn)
|
import Prelude hiding (putStrLn)
|
||||||
|
#if !MIN_VERSION_base(4,8,0)
|
||||||
import Control.Applicative ((<$>))
|
import Control.Applicative ((<$>))
|
||||||
|
#endif
|
||||||
import Control.Monad (when)
|
import Control.Monad (when)
|
||||||
import Data.Text (pack)
|
import Data.Text (pack)
|
||||||
import System.Exit (exitSuccess)
|
import System.Exit (exitSuccess)
|
||||||
|
|||||||
@ -2,7 +2,9 @@
|
|||||||
module Hledger.Web.Options
|
module Hledger.Web.Options
|
||||||
where
|
where
|
||||||
import Prelude
|
import Prelude
|
||||||
|
#if !MIN_VERSION_base(4,8,0)
|
||||||
import Control.Applicative ((<$>))
|
import Control.Applicative ((<$>))
|
||||||
|
#endif
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import System.Console.CmdArgs
|
import System.Console.CmdArgs
|
||||||
import System.Console.CmdArgs.Explicit
|
import System.Console.CmdArgs.Explicit
|
||||||
|
|||||||
@ -7,7 +7,9 @@ import Prelude as Import hiding (head, init, last,
|
|||||||
readFile, tail, writeFile)
|
readFile, tail, writeFile)
|
||||||
import Yesod as Import hiding (Route (..))
|
import Yesod as Import hiding (Route (..))
|
||||||
|
|
||||||
|
#if !MIN_VERSION_base(4,8,0)
|
||||||
import Control.Applicative as Import (pure, (<$>), (<*>))
|
import Control.Applicative as Import (pure, (<$>), (<*>))
|
||||||
|
#endif
|
||||||
import Data.Text as Import (Text)
|
import Data.Text as Import (Text)
|
||||||
|
|
||||||
import Foundation as Import
|
import Foundation as Import
|
||||||
@ -16,8 +18,10 @@ import Settings.Development as Import
|
|||||||
import Settings.StaticFiles as Import
|
import Settings.StaticFiles as Import
|
||||||
|
|
||||||
#if __GLASGOW_HASKELL__ >= 704
|
#if __GLASGOW_HASKELL__ >= 704
|
||||||
import Data.Monoid as Import
|
import Data.Monoid as Import (
|
||||||
(Monoid (mappend, mempty, mconcat),
|
#if !MIN_VERSION_base(4,8,0)
|
||||||
|
Monoid (mappend, mempty, mconcat),
|
||||||
|
#endif
|
||||||
(<>))
|
(<>))
|
||||||
#else
|
#else
|
||||||
import Data.Monoid as Import
|
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
|
-- | Settings are centralized, as much as possible, into this file. This
|
||||||
-- includes database connection settings, static file locations, etc.
|
-- includes database connection settings, static file locations, etc.
|
||||||
-- In addition, you can configure a number of different aspects of Yesod
|
-- 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 Yesod.Default.Util
|
||||||
import Data.Text (Text)
|
import Data.Text (Text)
|
||||||
import Data.Yaml
|
import Data.Yaml
|
||||||
|
#if !MIN_VERSION_base(4,8,0)
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
|
#endif
|
||||||
import Settings.Development
|
import Settings.Development
|
||||||
import Data.Default (def)
|
import Data.Default (def)
|
||||||
import Text.Hamlet
|
import Text.Hamlet
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user