summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Compat/Locale.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-12-19 16:13:38 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-12-19 16:13:38 -0800
commit2c3310a592e33bf4bd4e4a1328efda0d1b6ac218 (patch)
treed64ea4ad9d85078e9191f14328cb4c7ff5e81207 /src/Text/Pandoc/Compat/Locale.hs
parentf72dfc2d94f2c4488f8da381ca5c82e075a1f64c (diff)
Added Text.Pandoc.Compat.Locale to assist with transition to time 1.5.
Diffstat (limited to 'src/Text/Pandoc/Compat/Locale.hs')
-rw-r--r--src/Text/Pandoc/Compat/Locale.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Compat/Locale.hs b/src/Text/Pandoc/Compat/Locale.hs
new file mode 100644
index 000000000..ac791136c
--- /dev/null
+++ b/src/Text/Pandoc/Compat/Locale.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE CPP #-}
+module Text.Pandoc.Compat.Locale ( defaultTimeLocale )
+where
+
+#if MIN_VERSION_time(1,5,0)
+import Data.Time.Format ( defaultTimeLocale )
+#else
+import System.Locale ( defaultTimeLocale )
+#endif