From ab9eea7029e2f666a0accce07ce5f5105f5c2155 Mon Sep 17 00:00:00 2001 From: Liang-Ting Chen Date: Thu, 12 Nov 2020 05:32:10 +0800 Subject: Remove unnecessary conditional compilation for parseTimeM (#781) --- lib/Hakyll/Web/Template/Context.hs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lib/Hakyll/Web') 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 -- cgit v1.2.3