diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2015-06-23 14:01:13 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2015-06-23 14:01:13 +0200 |
commit | b034bcea95385b93114aa648bb69f6c56a482893 (patch) | |
tree | 970fddc6d09e70a53e628cbc919a796d4e294541 /src/Hakyll/Web/Template | |
parent | a43b4ee90fe581b2aedcff5e03b4e9689b6497ce (diff) | |
download | hakyll-b034bcea95385b93114aa648bb69f6c56a482893.tar.gz |
Drop old-time, old-locale, time-locale-compat deps
Diffstat (limited to 'src/Hakyll/Web/Template')
-rw-r--r-- | src/Hakyll/Web/Template/Context.hs | 12 | ||||
-rw-r--r-- | src/Hakyll/Web/Template/List.hs | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/Hakyll/Web/Template/Context.hs b/src/Hakyll/Web/Template/Context.hs index a0f2779..f783c10 100644 --- a/src/Hakyll/Web/Template/Context.hs +++ b/src/Hakyll/Web/Template/Context.hs @@ -29,15 +29,15 @@ module Hakyll.Web.Template.Context -------------------------------------------------------------------------------- -import Control.Applicative (Alternative (..), (<$>), pure) +import Control.Applicative (Alternative (..), pure, (<$>)) import Control.Monad (msum) import Data.List (intercalate) import qualified Data.Map as M import Data.Monoid (Monoid (..)) import Data.Time.Clock (UTCTime (..)) -import Data.Time.Format (formatTime, parseTime) -import System.FilePath (takeBaseName, splitDirectories) -import Data.Time.Locale.Compat (TimeLocale, defaultTimeLocale) +import Data.Time.Format (TimeLocale, defaultTimeLocale, + formatTime, parseTime) +import System.FilePath (splitDirectories, takeBaseName) -------------------------------------------------------------------------------- @@ -47,7 +47,7 @@ import Hakyll.Core.Identifier import Hakyll.Core.Item import Hakyll.Core.Metadata import Hakyll.Core.Provider -import Hakyll.Core.Util.String (splitAll, needlePrefix) +import Hakyll.Core.Util.String (needlePrefix, splitAll) import Hakyll.Web.Html @@ -238,7 +238,7 @@ titleField = mapContext takeBaseName . pathField -- Alternatively, when the metadata has a field called @path@ in a -- @folder/yyyy-mm-dd-title.extension@ format (the convention for pages) -- and no @published@ metadata field set, this function can render --- the date. This pattern matches the file name or directory names +-- the date. This pattern matches the file name or directory names -- that begins with @yyyy-mm-dd@ . For example: -- @folder//yyyy-mm-dd-title//dist//main.extension@ . -- In case of multiple matches, the rightmost one is used. diff --git a/src/Hakyll/Web/Template/List.hs b/src/Hakyll/Web/Template/List.hs index 4d769fc..b44e3b1 100644 --- a/src/Hakyll/Web/Template/List.hs +++ b/src/Hakyll/Web/Template/List.hs @@ -22,7 +22,7 @@ module Hakyll.Web.Template.List import Control.Monad (liftM) import Data.List (intersperse, sortBy) import Data.Ord (comparing) -import Data.Time.Locale.Compat (defaultTimeLocale) +import Data.Time.Format (defaultTimeLocale) -------------------------------------------------------------------------------- |