summaryrefslogtreecommitdiff
path: root/TimeUtil.hs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeUtil.hs')
-rw-r--r--TimeUtil.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/TimeUtil.hs b/TimeUtil.hs
index 9035e50..879bc32 100644
--- a/TimeUtil.hs
+++ b/TimeUtil.hs
@@ -1,5 +1,6 @@
1{-# LANGUAGE OverloadedStrings #-} 1{-# LANGUAGE OverloadedStrings #-}
2{-# LANGUAGE ViewPatterns #-} 2{-# LANGUAGE ViewPatterns #-}
3{-# LANGUAGE CPP #-}
3module TimeUtil 4module TimeUtil
4 ( now 5 ( now
5 , IsTime(..) 6 , IsTime(..)
@@ -14,8 +15,10 @@ import Data.Time.LocalTime
14import Data.Time.Format 15import Data.Time.Format
15import Data.Time.Clock 16import Data.Time.Clock
16import Data.Time.Clock.POSIX 17import Data.Time.Clock.POSIX
17import System.Locale 18#if !MIN_VERSION_time(1,5,0)
18import Data.String 19import System.Locale (defaultTimeLocale)
20#endif
21import Data.String
19import Control.Applicative 22import Control.Applicative
20import Data.Maybe 23import Data.Maybe
21import Data.Char 24import Data.Char