aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Hengel <sol@typeful.net>2014-08-22 15:18:06 +0800
committerSimon Hengel <sol@typeful.net>2014-08-22 15:18:06 +0800
commit259b2a9d821716a4e0ad5a1ea595576bac077daa (patch)
tree8d42dbe8a79f7a9cee2a4b0c7d061f274f8de3aa
parent4dc4d3cfa18d795f9b2bb7c5a3ac60ce29d8f279 (diff)
Add deprecated compatibility module
-rw-r--r--compat/Documentation/Haddock.hs5
-rw-r--r--haddock.cabal15
2 files changed, 20 insertions, 0 deletions
diff --git a/compat/Documentation/Haddock.hs b/compat/Documentation/Haddock.hs
new file mode 100644
index 00000000..4130cfb9
--- /dev/null
+++ b/compat/Documentation/Haddock.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE PackageImports #-}
+module Documentation.Haddock {-# DEPRECATED "Use @Documentation.Haddock@ from package <http://hackage.haskell.org/package/haddock-api haddock-api> instead!" #-} (
+ module Documentation.Haddock
+) where
+import "haddock-api" Documentation.Haddock
diff --git a/haddock.cabal b/haddock.cabal
index 9939a352..5932b122 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -40,6 +40,21 @@ flag in-ghc-tree
default: False
manual: True
+-- This package re-exports the haddock-api library for compatibility.
+-- The library section will be removed in version 2.16.0.
+library
+ exposed: False
+ default-language: Haskell2010
+ hs-source-dirs: compat
+ ghc-options: -Wall
+ build-depends:
+ -- NOTE: Don't bump base dependency! Remove library section instead!
+ base >= 4.3 && < 4.8
+ , haddock-api
+ exposed-modules: Documentation.Haddock
+ if flag(in-ghc-tree)
+ buildable: False
+
executable haddock
default-language: Haskell2010
main-is: Main.hs