cabal-version: 2.4
name: yasi
version: 0.2.0.1
x-revision: 7

synopsis: Yet another string interpolator
description:
  Yet another string interpolator,
  with a different set of tradeoffs
category: String, Text, QuasiQuotes

homepage: https://github.com/amesgen/yasi
bug-reports: https://github.com/amesgen/yasi/issues
license: CC0-1.0
license-file: LICENSE
extra-source-files: README.md
author: amesgen
maintainer: amesgen@amesgen.de
extra-source-files: CHANGELOG.md

source-repository head
  location: https://github.com/amesgen/yasi
  type: git

common commons
  default-language: Haskell2010
  ghc-options: -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -fno-warn-name-shadowing -Wunused-packages
  default-extensions: BlockArguments DeriveGeneric FlexibleContexts FlexibleInstances LambdaCase MultiParamTypeClasses OverloadedStrings QuasiQuotes RecordWildCards ScopedTypeVariables TemplateHaskell TupleSections
library
  import: commons
  ghc-options: -Wmissing-export-lists
  hs-source-dirs: src
  exposed-modules:
    Yasi
    Yasi.Internal
    Yasi.Util
  build-depends:
      base >= 4.14 && < 5
    , template-haskell >= 2.16 && < 2.24
    , text >= 1.2 && < 2.2
    , text-display ^>= 0.0.2
    , ghc-hs-meta ^>= 0.1

test-suite tasty
  import: commons
  type: exitcode-stdio-1.0
  main-is: Driver.hs
  hs-source-dirs: test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-tool-depends:
      tasty-discover:tasty-discover ^>= 4.2
  build-depends:
      base
    , yasi
    , text
    , text-display
    , tasty >= 1.3 && < 1.6
    , tasty-hunit ^>= 0.10
    , tasty-hedgehog >= 1.0 && < 1.5
    , hedgehog >= 1.0 && < 1.6
  other-modules:
      Segments
      Interpolations
      Util