packages feed

hostaddress-0.1.0.0: hostaddress.cabal

cabal-version: 2.2
name: hostaddress
version: 0.1.0.0
synopsis: Network Host Addresses
description:
    Host addresses as described in RFC2396 section 3.2.2 with additional consideration of
    .
    * RFC1123 (additional restrictions for hostnames),
    * RFC1034 (disambiguate domain names and IPv4 addresses),
    * RFC4291 (parsing of IPv6 addresses), and
    * RFC3986 and RFC5952 (IPv6 literals within host addresses).

homepage: https://github.com/larskuhtz/hostaddress
bug-reports: https://github.com/larskuhtz/hostaddress/issues
license: MIT
license-file: LICENSE
author: Lars Kuhtz
maintainer: Lars Kuhtz <lakuhtz@gmail.com>
copyright: Copyright (c) 2020, Lars Kuhtz <lakuhtz@gmail.com>
category: Data
tested-with:
      GHC==8.6.5
    , GHC==8.8.2
extra-source-files:
    README.md
    CHANGELOG.md

source-repository head
    type: git
    location: https://github.com/larskuhtz/hostaddress.git

flag with-configuration-tools
    description: add support functions and instances for configuration-tools
    default: False
    manual: True

flag with-aeson
    description: generate ToJSON and FromJSON instances
    default: False
    manual: True

flag with-quickcheck
    description: include functions for generating arbitrary values and generate Arbitrary instances
    default: False
    manual: True

library
    hs-source-dirs: src
    default-language: Haskell2010
    ghc-options:
        -Wall
    exposed-modules:
        Network.HostAddress
    build-depends:
          base >=4.10 && <4.15
        , bytestring >=0.10
        , deepseq >=1.4
        , text >=1.2
        , hashable >=1.3
        , case-insensitive >=1.2
        , microlens-th >=0.4
        , exceptions >=0.10
        , attoparsec >=0.13
        , iproute >=1.7

    if flag(with-aeson)
        build-depends:
            aeson >=1.4

    if flag(with-configuration-tools)
        build-depends:
              configuration-tools >=0.4
            , optparse-applicative >=0.15
            , aeson >=1.4

    if flag(with-quickcheck)
        build-depends:
            QuickCheck >=2.13