cabal-version:  1.12
name:           char-decode
version:        0.0.1
category:       Text
synopsis:       Convert legacy byte encodings to and from Unicode
description:    Provides simple functions @Word8 -> Char@ and
                @Char -> Either Char Word8@ for converting from
                legacy character encodings to Unicode and back.
homepage:       https://github.com/nbloomf/char-decode#readme
bug-reports:    https://github.com/nbloomf/char-decode/issues
author:         Nathan Bloomfield
maintainer:     nathan.bloomfield@automattic.com
copyright:      2019 Automattic, Inc.
license:        BSD3
license-file:   LICENSE
build-type:     Simple

extra-source-files:
  README.md
  ChangeLog.md

source-repository head
  type: git
  location: https://github.com/githubuser/char-decode

library
  default-language: Haskell2010
  hs-source-dirs: src
  build-depends:
      base >=4.7 && <5
    , bytestring >=0.10.8.2
    , text >= 1.2.3.1
  exposed-modules:
      Data.Char.Decode
  other-modules:
      Data.Char.Decode.Class
    , Data.Char.Decode.CodePage437
    , Data.Char.Decode.CodePage437.Graphic

test-suite char-decode-test
  default-language: Haskell2010
  type: exitcode-stdio-1.0
  main-is: Main.hs
  hs-source-dirs: test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5
    , char-decode
    , QuickCheck >=2.12.6.1
    , tasty >=1.2
    , tasty-quickcheck >=0.10