packages feed

portray-prettyprinter-0.2.1: portray-prettyprinter.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack

name:           portray-prettyprinter
version:        0.2.1
synopsis:       Portray backend for prettyprinter
description:    This provides a
                <https://hackage.haskell.org/package/prettyprinter prettyprinter> backend for
                <https://hackage.haskell.org/package/portray portray> along with derivable
                'Pretty' instances for types with 'Portray' instances.
                .
                This backend has largely superseded the original
                <https://hackage.haskell.org/package/portray-pretty portray-pretty>.  Because
                @prettyprinter@ gives more flexibility to documents at the cost of requiring
                more behavior to be specified explicitly, some formats are nicer with this
                backend, configurable syntax highlighting is supported, and unicode escaping
                is configurable.  However, as this backend is still newer, there are
                potentially more unnoticed formatting bugs.  Please do file bugs on the
                GitHub issue tracker if you find anything that seems obviously wrong!
                .
                Try using 'pp' as the print function in GHCi:
                @:set -interactive-print=Data.Portray.Prettyprinter.pp@!
category:       Text
homepage:       https://github.com/awpr/portray#readme
bug-reports:    https://github.com/awpr/portray/issues
author:         Andrew Pritchard <awpritchard@gmail.com>
maintainer:     Andrew Pritchard <awpritchard@gmail.com>
copyright:      2021 Google LLC; 2022 Andrew Pritchard
license:        Apache-2.0
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/awpr/portray
  subdir: portray-prettyprinter

library
  exposed-modules:
      Data.Portray.Prettyprinter
  hs-source-dirs:
      src
  build-depends:
      base >=4.12 && <4.17
    , portray ==0.3.*
    , portray-diff ==0.1.*
    , prettyprinter >=1.2 && <1.8
    , prettyprinter-ansi-terminal >=1.1.1 && <1.2
    , text >=0.1 && <2.1
  default-language: Haskell2010

test-suite PortrayPrettyprinter-test
  type: exitcode-stdio-1.0
  main-is: Main.hs
  hs-source-dirs:
      test
  build-depends:
      HUnit
    , QuickCheck
    , base >=4.12 && <4.17
    , portray
    , portray-diff ==0.1.*
    , portray-prettyprinter
    , prettyprinter >=1.2 && <1.8
    , prettyprinter-ansi-terminal >=1.1.1 && <1.2
    , test-framework
    , test-framework-hunit
    , test-framework-quickcheck2
    , text >=0.1 && <2.1
  default-language: Haskell2010