summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLiang-Ting Chen <liang.ting.chen.tw@gmail.com>2020-11-12 05:32:10 +0800
committerGitHub <noreply@github.com>2020-11-12 00:32:10 +0300
commitab9eea7029e2f666a0accce07ce5f5105f5c2155 (patch)
treeaf69b010fe3a611ecd7447ffb5bd91d3a9161007 /lib
parentb23e17a3ac868903241d0a05d9061dc890b0174b (diff)
downloadhakyll-ab9eea7029e2f666a0accce07ce5f5105f5c2155.tar.gz
Remove unnecessary conditional compilation for parseTimeM (#781)
Diffstat (limited to 'lib')
-rw-r--r--lib/Hakyll/Web/Template/Context.hs10
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