diff options
author | Liang-Ting Chen <liang.ting.chen.tw@gmail.com> | 2020-11-12 05:32:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 00:32:10 +0300 |
commit | ab9eea7029e2f666a0accce07ce5f5105f5c2155 (patch) | |
tree | af69b010fe3a611ecd7447ffb5bd91d3a9161007 /lib/Hakyll/Web | |
parent | b23e17a3ac868903241d0a05d9061dc890b0174b (diff) | |
download | hakyll-ab9eea7029e2f666a0accce07ce5f5105f5c2155.tar.gz |
Remove unnecessary conditional compilation for parseTimeM (#781)
Diffstat (limited to 'lib/Hakyll/Web')
-rw-r--r-- | lib/Hakyll/Web/Template/Context.hs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/Hakyll/Web/Template/Context.hs b/lib/Hakyll/Web/Template/Context.hs index 3f75466..9ce7440 100644 --- a/lib/Hakyll/Web/Template/Context.hs +++ b/lib/Hakyll/Web/Template/Context.hs @@ -60,8 +60,7 @@ import Data.List (intercalate, tails) import Data.Semigroup (Semigroup (..)) #endif import Data.Time.Clock (UTCTime (..)) -import Data.Time.Format (formatTime) -import qualified Data.Time.Format as TF +import Data.Time.Format (formatTime, parseTimeM) import Data.Time.Locale.Compat (TimeLocale, defaultTimeLocale) import Hakyll.Core.Compiler import Hakyll.Core.Compiler.Internal @@ -463,10 +462,3 @@ teaserFieldWithSeparator separator key snapshot = field key $ \item -> do missingField :: Context a missingField = Context $ \k _ _ -> noResult $ "Missing field '" ++ k ++ "' in context" - -parseTimeM :: Bool -> TimeLocale -> String -> String -> Maybe UTCTime -#if MIN_VERSION_time(1,5,0) -parseTimeM = TF.parseTimeM -#else -parseTimeM _ = TF.parseTime -#endif |