cabal-version: 1.12

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

name:           th-printf
version:        0.7
synopsis:       Quasiquoters for printf
description:    Quasiquoters for string and text printf
category:       Text
homepage:       https://github.com/pikajude/th-printf#readme
bug-reports:    https://github.com/pikajude/th-printf/issues
author:         Jude Taylor
maintainer:     me@jude.xyz
license:        MIT
license-file:   LICENSE
tested-with:    GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.1
build-type:     Simple
extra-source-files:
    CHANGELOG.md
    include/compat-defs.h

source-repository head
  type: git
  location: https://github.com/pikajude/th-printf

flag werror
  description: Build with -Werror
  manual: True
  default: False

library
  exposed-modules:
      Language.Haskell.Printf
      Language.Haskell.Printf.Lib
  other-modules:
      Buildable
      Language.Haskell.Printf.Geometry
      Language.Haskell.Printf.Printers
      Language.Haskell.PrintfArg
      NumUtils
      StrUtils
      Parser
      Parser.Types
      Paths_th_printf
  hs-source-dirs:
      src
      parser
  default-extensions: CPP
  ghc-options: -Wall
  cpp-options: -include include/compat-defs.h
  build-depends:
      base ==4.*
    , charset
    , containers
    , dlist
    , integer-logarithms
    , microlens-platform
    , mtl
    , parsec
    , semigroups
    , template-haskell
    , text
    , th-lift
    , transformers
  if impl(ghcjs)
    build-depends:
        primitive ==0.6.3.0
  if flag(werror)
    ghc-options: -Werror
  default-language: Haskell2010

test-suite format
  type: exitcode-stdio-1.0
  main-is: format.hs
  other-modules:
      GeneratedSpec
      Paths_th_printf
  hs-source-dirs:
      tests/printf
  ghc-options: -Wall -fno-warn-type-defaults
  build-depends:
      HUnit
    , QuickCheck
    , base ==4.*
    , hspec
    , template-haskell
    , text
    , th-printf
  if impl(ghcjs)
    build-depends:
        primitive ==0.6.3.0
  if flag(werror)
    ghc-options: -Werror
  if impl(ghcjs)
    build-depends:
        hspec-core ==2.4.8
  default-language: Haskell2010