[commit: haddock] 2.15, 2.15.0.1, 2.15.0.2, T6018-injective-type-families, adamse-D1033, clean, ghc-head, master, metainfo, v2.15, wip/10268, wip/10313, wip/D538, wip/D538-1, wip/D538-2, wip/D538-3, wip/D538-4, wip/D538-5, wip/D538-6, wip/D548-master, wip/D548-master-2, wip/T10483, wip/T9840, wip/api-annot-tweaks-7.10, wip/api-annots-ghc-7.10-3, wip/orf-reboot: Add deprecated compatibility module (259b2a9)

git at git.haskell.org git at git.haskell.org
Wed Jul 8 08:30:30 UTC 2015


Repository : ssh://git@git.haskell.org/haddock

On branches: 2.15,2.15.0.1,2.15.0.2,T6018-injective-type-families,adamse-D1033,clean,ghc-head,master,metainfo,v2.15,wip/10268,wip/10313,wip/D538,wip/D538-1,wip/D538-2,wip/D538-3,wip/D538-4,wip/D538-5,wip/D538-6,wip/D548-master,wip/D548-master-2,wip/T10483,wip/T9840,wip/api-annot-tweaks-7.10,wip/api-annots-ghc-7.10-3,wip/orf-reboot
Link       : http://git.haskell.org/haddock.git/commitdiff/259b2a9d821716a4e0ad5a1ea595576bac077daa

>---------------------------------------------------------------

commit 259b2a9d821716a4e0ad5a1ea595576bac077daa
Author: Simon Hengel <sol at typeful.net>
Date:   Fri Aug 22 15:18:06 2014 +0800

    Add deprecated compatibility module


>---------------------------------------------------------------

259b2a9d821716a4e0ad5a1ea595576bac077daa
 compat/Documentation/Haddock.hs |  5 +++++
 haddock.cabal                   | 15 +++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/compat/Documentation/Haddock.hs b/compat/Documentation/Haddock.hs
new file mode 100644
index 0000000..4130cfb
--- /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 9939a35..5932b12 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



More information about the ghc-commits mailing list