Skip to content

Commit

Permalink
Revert 3bf3d4c
Browse files Browse the repository at this point in the history
  • Loading branch information
st3ll1s committed Mar 21, 2018
1 parent ee6e321 commit b29547e
Showing 1 changed file with 19 additions and 46 deletions.
65 changes: 19 additions & 46 deletions haddock-library/haddock-library.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.0
name: haddock-library
version: 1.5.0.1
version: 1.5.0.2
synopsis: Library exposing some functionality of Haddock.
description: Haddock is a documentation-generation tool for Haskell
libraries. These modules expose some functionality of it
Expand All @@ -27,11 +27,9 @@ library
, bytestring >= 0.9.2.1 && < 0.11
, containers >= 0.4.2.1 && < 0.6
, transformers >= 0.3.0 && < 0.6
, deepseq >= 1.3 && < 1.5

-- internal sub-lib
build-depends: attoparsec

hs-source-dirs: src
hs-source-dirs: src, vendor/attoparsec-0.13.1.0

exposed-modules:
Documentation.Haddock.Doc
Expand All @@ -41,39 +39,19 @@ library
Documentation.Haddock.Types
Documentation.Haddock.Utf8

other-modules:
Documentation.Haddock.Parser.Util

ghc-options: -funbox-strict-fields -Wall -fwarn-tabs -O2
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances

library attoparsec
default-language: Haskell2010

build-depends:
base >= 4.5 && < 4.12
, bytestring >= 0.9.2.1 && < 0.11
, deepseq >= 1.3 && < 1.5

hs-source-dirs: vendor/attoparsec-0.13.1.0

-- NB: haddock-library needs only small part of lib:attoparsec
-- internally, so we only bundle that subset here
exposed-modules:
Data.Attoparsec.ByteString
Data.Attoparsec.ByteString.Char8
Data.Attoparsec.Combinator

other-modules:
Data.Attoparsec
Data.Attoparsec.ByteString
Data.Attoparsec.ByteString.Buffer
Data.Attoparsec.ByteString.Char8
Data.Attoparsec.ByteString.FastSet
Data.Attoparsec.ByteString.Internal
Data.Attoparsec.Combinator
Data.Attoparsec.Internal
Data.Attoparsec.Internal.Fhthagn
Data.Attoparsec.Internal.Types
Data.Attoparsec.Number
Documentation.Haddock.Parser.Util

ghc-options: -funbox-strict-fields -Wall -fwarn-tabs -O2
if impl(ghc >= 8.0)
Expand All @@ -89,12 +67,22 @@ test-suite spec
hs-source-dirs:
test
, src
, vendor/attoparsec-0.13.1.0
ghc-options: -Wall

cpp-options:
-DTEST

other-modules:
Data.Attoparsec.ByteString
Data.Attoparsec.ByteString.Buffer
Data.Attoparsec.ByteString.Char8
Data.Attoparsec.ByteString.FastSet
Data.Attoparsec.ByteString.Internal
Data.Attoparsec.Combinator
Data.Attoparsec.Internal
Data.Attoparsec.Internal.Fhthagn
Data.Attoparsec.Internal.Types
Documentation.Haddock.Doc
Documentation.Haddock.Parser
Documentation.Haddock.Parser.Monad
Expand All @@ -105,21 +93,10 @@ test-suite spec
Documentation.Haddock.Utf8
Documentation.Haddock.Utf8Spec

build-depends:
base-compat ^>= 0.9.3
, containers >= 0.4.2.1 && < 0.6
, transformers >= 0.3.0 && < 0.6
, hspec ^>= 2.4.4
, QuickCheck ^>= 2.11

-- internal sub-lib
build-depends: attoparsec

-- Versions for the dependencies below are transitively pinned by
-- dependency on haddock-library:lib:attoparsec
build-depends:
base
, bytestring
, transformers
, deepseq

build-tool-depends:
Expand All @@ -139,13 +116,9 @@ test-suite fixtures
, tree-diff ^>= 0.0.0.1

-- Depend on the library.
build-depends:
haddock-library

-- Versions for the dependencies below are transitively pinned by
-- dependency on haddock-library:lib:attoparsec
build-depends:
base
, haddock-library

source-repository head
type: git
Expand Down

0 comments on commit b29547e

Please sign in to comment.