diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-12-19 16:13:38 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-12-19 16:13:38 -0800 |
commit | 2c3310a592e33bf4bd4e4a1328efda0d1b6ac218 (patch) | |
tree | d64ea4ad9d85078e9191f14328cb4c7ff5e81207 /src/Text/Pandoc/Compat | |
parent | f72dfc2d94f2c4488f8da381ca5c82e075a1f64c (diff) | |
download | pandoc-2c3310a592e33bf4bd4e4a1328efda0d1b6ac218.tar.gz |
Added Text.Pandoc.Compat.Locale to assist with transition to time 1.5.
Diffstat (limited to 'src/Text/Pandoc/Compat')
-rw-r--r-- | src/Text/Pandoc/Compat/Locale.hs | 9 |
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 |