diff options
Diffstat (limited to 'TimeUtil.hs')
-rw-r--r-- | TimeUtil.hs | 7 |
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 #-} | ||
3 | module TimeUtil | 4 | module TimeUtil |
4 | ( now | 5 | ( now |
5 | , IsTime(..) | 6 | , IsTime(..) |
@@ -14,8 +15,10 @@ import Data.Time.LocalTime | |||
14 | import Data.Time.Format | 15 | import Data.Time.Format |
15 | import Data.Time.Clock | 16 | import Data.Time.Clock |
16 | import Data.Time.Clock.POSIX | 17 | import Data.Time.Clock.POSIX |
17 | import System.Locale | 18 | #if !MIN_VERSION_time(1,5,0) |
18 | import Data.String | 19 | import System.Locale (defaultTimeLocale) |
20 | #endif | ||
21 | import Data.String | ||
19 | import Control.Applicative | 22 | import Control.Applicative |
20 | import Data.Maybe | 23 | import Data.Maybe |
21 | import Data.Char | 24 | import Data.Char |