File ansi-wl-pprint.cabal of Package ghc-ansi-wl-pprint

cabal-version:       >= 1.10
name:                ansi-wl-pprint
version:             0.6.9
x-revision:          2

category:            User Interfaces, Text
synopsis:            The Wadler/Leijen Pretty Printer for colored ANSI terminal output
description:         {

This is a pretty printing library based on Wadler's paper ["A Prettier Printer"](
It has been enhanced with support for ANSI terminal colored output using the [ansi-terminal]( package.

license:             BSD3
license-file:        LICENSE
author:              Daan Leijen, Max Bolingbroke
maintainer:          Edward Kmett <>
build-type:          Simple
tested-with:         GHC==7.0.2, GHC==7.2.2, GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.3, GHC==8.6.5, GHC==8.8.1

source-repository head
  type: git

flag Example
  description:    Build the example application
  default:        False
  manual:         True

  default-language: Haskell2010
  hs-source-dirs: .
  exposed-modules: Text.PrettyPrint.ANSI.Leijen
                 , Text.PrettyPrint.ANSI.Leijen.Internal
  ghc-options: -Wall -fno-warn-name-shadowing -fno-warn-unused-matches

  -- See
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat -Wnoncanonical-monad-instances
    if impl(ghc < 8.8)
      ghc-options: -Wnoncanonical-monadfail-instances
    -- see also notes in Text.PrettyPrint.ANSI.Leijen
    build-depends: semigroups >= 0.18.5 && < 0.20

  build-depends: ansi-terminal >= 0.9.1 && < 0.12
  build-depends: base >= 4.3 && < 5

  if impl(ghc >= 7.4)
    default-extensions: Safe
    if impl(ghc >= 7.2)
      default-extensions: Trustworthy

executable ansi-wl-pprint-example
  default-language: Haskell2010
  hs-source-dirs: src-exe
  main-is: Example.hs

  if flag(example)
    build-depends: ansi-wl-pprint
    -- dependencies whose constraints are inherited via lib:ansi-wl-pprint
    build-depends: base, ansi-terminal
    buildable: False
openSUSE Build Service is sponsored by