packages feed

text-builder-0.6.8: text-builder.cabal

cabal-version: 3.0
name: text-builder
version: 0.6.8
category: Text, Builders
synopsis: Efficient strict text builder
description:
  - Efficient monoidal builder of strict textual values
  - Text formatting library, an alternative to `printf` or the "formatting" Haskell library

homepage: https://github.com/nikita-volkov/text-builder
bug-reports: https://github.com/nikita-volkov/text-builder/issues
author: Nikita Volkov <nikita.y.volkov@mail.ru>
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
copyright: (c) 2017, Nikita Volkov
license: MIT
license-file: LICENSE
extra-source-files:
  CHANGELOG.md
  README.md

source-repository head
  type: git
  location: https://github.com/nikita-volkov/text-builder

common base
  default-language: Haskell2010
  default-extensions:
    BangPatterns
    BlockArguments
    ConstraintKinds
    DataKinds
    DefaultSignatures
    DeriveDataTypeable
    DeriveFoldable
    DeriveFunctor
    DeriveGeneric
    DeriveTraversable
    EmptyDataDecls
    FlexibleContexts
    FlexibleInstances
    FunctionalDependencies
    GADTs
    GeneralizedNewtypeDeriving
    LambdaCase
    LiberalTypeSynonyms
    MagicHash
    MultiParamTypeClasses
    MultiWayIf
    NoImplicitPrelude
    NoMonomorphismRestriction
    NumericUnderscores
    OverloadedStrings
    ParallelListComp
    PatternGuards
    QuasiQuotes
    RankNTypes
    RecordWildCards
    ScopedTypeVariables
    StandaloneDeriving
    TemplateHaskell
    TupleSections
    TypeApplications
    TypeFamilies
    TypeOperators
    UnboxedTuples

library
  import: base
  hs-source-dirs: library
  exposed-modules:
    Text.Builder
    TextBuilder

  other-modules: TextBuilder.Prelude
  build-depends:
    base >=4.11 && <5,
    bytestring >=0.10 && <0.13,
    text >=1.2 && <3,
    text-builder-dev >=0.3.4.1 && <0.4,

test-suite test
  import: base
  type: exitcode-stdio-1.0
  hs-source-dirs: test
  main-is: Main.hs
  build-depends:
    rerebase <2,
    tasty >=1.2.3 && <2,
    tasty-hunit >=0.10.0.2 && <0.11,
    tasty-quickcheck >=0.10.1 && <0.12,
    text-builder,

benchmark bench
  import: base
  type: exitcode-stdio-1.0
  hs-source-dirs: bench
  ghc-options:
    -O2
    -threaded
    -with-rtsopts=-N
    -funbox-strict-fields

  main-is: Main.hs
  build-depends:
    criterion >=1.5.6.1 && <2,
    rerebase >=1 && <2,
    text-builder,