File: prettyprinter-ansi-terminal.cabal

package info (click to toggle)
haskell-prettyprinter-ansi-terminal 1.1.2-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 124 kB
  • sloc: haskell: 341; ansic: 16; makefile: 11
file content (82 lines) | stat: -rw-r--r-- 2,627 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name:                prettyprinter-ansi-terminal
version:             1.1.2
cabal-version:       >= 1.10
category:            User Interfaces, Text
synopsis:            ANSI terminal backend for the »prettyprinter« package.
description:         See README.md
license:             BSD2
license-file:        LICENSE.md
extra-source-files:  README.md
                   , misc/version-compatibility-macros.h
                   , CHANGELOG.md
author:              David Luposchainsky
maintainer:          Simon Jakobi <simon.jakobi@gmail.com>, David Luposchainsky <dluposchainsky at google>
bug-reports:         http://github.com/quchen/prettyprinter/issues
homepage:            http://github.com/quchen/prettyprinter
build-type:          Simple
tested-with:         GHC == 7.8.4
                   , GHC == 7.10.2
                   , GHC == 7.10.3
                   , GHC == 8.0.1
                   , GHC == 8.0.2
                   , GHC == 8.2.2

source-repository head
  type: git
  location: git://github.com/quchen/prettyprinter.git

library
    exposed-modules:  Data.Text.Prettyprint.Doc.Render.Terminal
                    , Data.Text.Prettyprint.Doc.Render.Terminal.Internal
                    , Prettyprinter.Render.Terminal
                    , Prettyprinter.Render.Terminal.Internal
    ghc-options:      -Wall -O2
    hs-source-dirs:   src
    include-dirs:     misc
    default-language: Haskell2010
    other-extensions:
          CPP
        , OverloadedStrings


    build-depends:
          base          >= 4.5 && < 5
        , ansi-terminal >= 0.4.0
        , text          >= 1.2
        , prettyprinter >= 1.1.1

    if impl(ghc >= 8.0)
        ghc-options: -Wcompat
    if !impl(ghc >= 8.0)
        build-depends: semigroups >= 0.1

test-suite doctest
    type: exitcode-stdio-1.0
    hs-source-dirs: test/Doctest
    main-is: Main.hs
    build-depends:
          base    >= 4.7 && < 5
        , doctest >= 0.9
    ghc-options: -Wall -threaded
    default-language: Haskell2010
    if impl (ghc < 7.10)
        buildable: False
        -- Doctest cannot search folders in old versions it seems :-(

benchmark large-output
    build-depends:
          base >= 4.5 && < 5
        , base-compat >=0.9.3 && <0.12
        , containers
        , deepseq
        , gauge >= 0.2
        , prettyprinter
        , prettyprinter-ansi-terminal
        , QuickCheck >= 2.7
        , text

    hs-source-dirs:      bench
    main-is:             LargeOutput.hs
    ghc-options:         -O2 -threaded -rtsopts -with-rtsopts=-N -Wall
    default-language:    Haskell2010
    type:                exitcode-stdio-1.0