aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Compat
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-09-03 08:10:53 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2016-09-03 08:10:53 -0400
commitdf1ca2b1a55a6dca762651028cd12a60cd426579 (patch)
tree2c6023292aa158d6788484d2aa0a2fd9a16a6a78 /src/Text/Pandoc/Compat
parent3f8d3d844fde31a27643254be69a17128a47d3fe (diff)
downloadpandoc-df1ca2b1a55a6dca762651028cd12a60cd426579.tar.gz
Add EOL note to time compat module.
Because time 1.4 is a boot library for GHC 7.8, we will support the compatibility module as long as we support 7.8. But we should be clear about when we will no longer need it.
Diffstat (limited to 'src/Text/Pandoc/Compat')
-rw-r--r--src/Text/Pandoc/Compat/Time.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Compat/Time.hs b/src/Text/Pandoc/Compat/Time.hs
index aa08ca224..b1cde82a4 100644
--- a/src/Text/Pandoc/Compat/Time.hs
+++ b/src/Text/Pandoc/Compat/Time.hs
@@ -1,4 +1,16 @@
{-# LANGUAGE CPP #-}
+
+{-
+This compatibility module is needed because, in time 1.5, the
+`defaultTimeLocale` function was moved from System.Locale (in the
+old-locale library) into Data.Time.
+
+We support both behaviors because time 1.4 is a boot library for GHC
+7.8. time 1.5 is a boot library for GHC 7.10.
+
+When support is dropped for GHC 7.8, this module may be obsoleted.
+-}
+
#if MIN_VERSION_time(1,5,0)
module Text.Pandoc.Compat.Time (
module Data.Time