aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/haddock-api.cabal
diff options
context:
space:
mode:
authoralexbiehl <alex.biehl@gmail.com>2017-08-21 20:05:42 +0200
committeralexbiehl <alex.biehl@gmail.com>2017-08-21 20:05:42 +0200
commit7a71af839bd71992a36d97650004c73bf11fa436 (patch)
treee64afbc9df5c97fde6ac6433e42f28df8a4acf49 /haddock-api/haddock-api.cabal
parentc8a01b83be52e45d3890db173ffe7b09ccd4f351 (diff)
parent740458ac4d2acf197f2ef8dc94a66f9b160b9c3c (diff)
Merge remote-tracking branch 'origin/master' into ghc-head
Diffstat (limited to 'haddock-api/haddock-api.cabal')
-rw-r--r--haddock-api/haddock-api.cabal75
1 files changed, 49 insertions, 26 deletions
diff --git a/haddock-api/haddock-api.cabal b/haddock-api/haddock-api.cabal
index 6a3ef944..d86c1c69 100644
--- a/haddock-api/haddock-api.cabal
+++ b/haddock-api/haddock-api.cabal
@@ -1,19 +1,21 @@
name: haddock-api
-version: 2.17.3
+version: 2.18.2
synopsis: A documentation-generation tool for Haskell libraries
description: Haddock is a documentation-generation tool for Haskell
libraries
license: BSD3
license-file: LICENSE
author: Simon Marlow, David Waern
-maintainer: Simon Hengel <sol@typeful.net>, Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
+maintainer: Alex Biehl <alexbiehl@gmail.com>, Simon Hengel <sol@typeful.net>, Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
homepage: http://www.haskell.org/haddock/
bug-reports: https://github.com/haskell/haddock/issues
copyright: (c) Simon Marlow, David Waern
category: Documentation
build-type: Simple
-cabal-version: >= 1.10
-stability: experimental
+cabal-version: >= 2.0
+
+extra-source-files:
+ CHANGES.md
data-dir:
resources
@@ -33,30 +35,34 @@ data-files:
latex/haddock.sty
library
- default-language:
- Haskell2010
+ default-language: Haskell2010
- build-depends:
- base >= 4.3 && < 4.11
- , bytestring
- , filepath
- , directory
- , containers
- , transformers
- , deepseq
- , array
- , xhtml >= 3000.2 && < 3000.3
- , Cabal >= 1.10
- , ghc-boot
- , ghc >= 8.3 && < 8.4
+ -- this package typically supports only single major versions
+ build-depends: base >= 4.10.0
+ , Cabal ^>= 2.0.0
+ , ghc ^>= 8.3
+ , ghc-paths ^>= 0.1.0.9
+ , haddock-library ^>= 1.4.6
+ , xhtml ^>= 3000.2.2
- , ghc-paths
- , haddock-library == 1.4.*
+ -- Versions for the dependencies below are transitively pinned by
+ -- the non-reinstallable `ghc` package and hence need no version
+ -- bounds
+ build-depends: array
+ , bytestring
+ , containers
+ , deepseq
+ , directory
+ , filepath
+ , ghc-boot
+ , transformers
- hs-source-dirs:
- src
+ hs-source-dirs: src
ghc-options: -funbox-strict-fields -Wall -fwarn-tabs -O2
+ ghc-options: -Wall
+ if impl(ghc >= 8.0)
+ ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
exposed-modules:
Documentation.Haddock
@@ -67,6 +73,7 @@ library
Haddock.Interface.Rename
Haddock.Interface.Create
Haddock.Interface.AttachInstances
+ Haddock.Interface.Json
Haddock.Interface.LexParseRn
Haddock.Interface.ParseModuleHeader
Haddock.Interface.Specialize
@@ -100,6 +107,9 @@ library
Haddock.Convert
Paths_haddock_api
+ autogen-modules:
+ Paths_haddock_api
+
test-suite spec
type: exitcode-stdio-1.0
default-language: Haskell2010
@@ -110,16 +120,29 @@ test-suite spec
test
, src
+ -- NB: We only use a small subset of lib:haddock-api here, which
+ -- explains why this component has a smaller build-depends set
other-modules:
Haddock.Backends.Hyperlinker.ParserSpec
+ Haddock.Backends.Hyperlinker.Parser
+ Haddock.Backends.Hyperlinker.Types
build-depends:
+ ghc ^>= 8.2
+ , hspec ^>= 2.4.4
+ , QuickCheck ^>= 2.10
+
+ -- Versions for the dependencies below are transitively pinned by
+ -- the non-reinstallable `ghc` package and hence need no version
+ -- bounds
+ build-depends:
base
, containers
- , ghc
- , hspec
- , QuickCheck == 2.*
+
+ build-tool-depends:
+ hspec-discover:hspec-discover ^>= 2.4.4
source-repository head
type: git
+ subdir: haddock-api
location: https://github.com/haskell/haddock.git