File uri-encode.cabal of Package ghc-uri-encode

name:                uri-encode
version:             1.5.0.7
x-revision: 2
synopsis:            Unicode aware uri-encoding
description:         This package allows you to uri encode and uri decode
                     Strings, Texts and ByteString values.
cabal-version:       1.18
category:            Network, Web
author:              Silk
maintainer:          code@silk.co
license:             BSD3
license-file:        LICENSE
build-type:          Simple

extra-doc-files:
  CHANGELOG.md
  LICENSE
  README.md

flag tools
  description:       Build executables
  default:           False
  manual:            True

flag network-uri
  description:       Get Network.URI from the network-uri package
  default:           True

source-repository head
  type:              git
  location:          https://github.com/silkapp/uri-encode.git

library
  ghc-options:       -Wall
  hs-source-dirs:    src
  exposed-modules:   Network.URI.Encode
  build-depends:
      base == 4.*
    , bytestring >= 0.9 && < 0.12
    , text >= 0.7 && < 2.1
    , utf8-string >= 0.3 && < 1.1
  if flag(network-uri)
    build-depends: network-uri >= 2.6
  else
    build-depends: network (>= 2.2 && < 2.4.1.0) || (> 2.4.1.0 && < 2.6)
  default-language: Haskell2010

executable uri-encode
  main-is:           URIEncode.hs
  ghc-options:       -Wall
  hs-source-dirs:    src
  if flag(tools)
    buildable:       True
    build-depends:
        base == 4.*
      , bytestring >= 0.9 && < 0.12
      , text >= 0.7 && < 1.3
      , utf8-string >= 0.3 && < 1.1
    if flag(network-uri)
      build-depends: network-uri >= 2.6
    else
      build-depends: network (>= 2.2 && < 2.4.1.0) || (> 2.4.1.0 && < 2.6)
  else
    buildable:      False
  default-language: Haskell2010

executable uri-decode
  main-is:           URIDecode.hs
  ghc-options:       -Wall
  hs-source-dirs:    src
  if flag(tools)
    buildable:       True
    build-depends:
        base == 4.*
      , bytestring >= 0.9 && < 0.12
      , text >= 0.7 && < 1.3
      , utf8-string >= 0.3 && < 1.1
    if flag(network-uri)
      build-depends: network-uri >= 2.6
    else
      build-depends: network (>= 2.2 && < 2.4.1.0) || (> 2.4.1.0 && < 2.6)
  else
    buildable:       False
  default-language: Haskell2010
openSUSE Build Service is sponsored by