cabal-version:       1.24

name:                base64-lens
version:             0.3.0
synopsis:            Optics for the Base64 library
description:
  Prisms and pattern synonyms for the Base64 library
homepage:            https://github.com/emilypi/base64-lens
bug-reports:         https://github.com/emilypi/base64-lens/issues
license:             BSD3
license-file:        LICENSE
author:              Emily Pillmore
maintainer:          emilypi@cohomolo.gy
copyright:           (c) 2019 Emily Pillmore
category:            Data
build-type:          Custom
extra-source-files:
  CHANGELOG.md
  README.md

tested-with:         GHC ==8.8.1 || ==8.6.5 || ==8.6.3 || ==8.4.4 || ==8.4.3 || ==8.2.2

source-repository head
  type:     git
  location: https://github.com/emilypi/base64.git


custom-setup
  setup-depends:
      base           >=4.10 && <5
    , Cabal
    , cabal-doctest


library
  exposed-modules:     Data.ByteString.Base64.Lens
                     , Data.Text.Encoding.Base64.Lens

  build-depends:       base       >=4.10 && <5
                     , base64     >=0.4  && <0.5
                     , bytestring >=0.10 && <0.11
                     , lens       >=4.0  && <5
                     , text       >=1.2  && <1.3

  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -Wall


test-suite doctests
  default-language:    Haskell2010
  type:                exitcode-stdio-1.0
  main-is:             doctests.hs

  build-depends:       base            >=4.10  && <5
                     , base64-lens
                     , doctest
                     , lens

  hs-source-dirs:      test
  ghc-options:         -Wall -threaded
  x-doctest-options:   --fast