packages feed

LDAPv3-0.1.2.0: LDAPv3.cabal

cabal-version:       2.2
name:                LDAPv3
version:             0.1.2.0

synopsis:            Lightweight Directory Access Protocol (LDAP) version 3
license:             GPL-2.0-or-later
license-file:        LICENSE
author:              Herbert Valerio Riedel
copyright:           © 2018-2023 Herbert Valerio Riedel
maintainer:          hvr@gnu.org
bug-reports:         https://github.com/hvr/LDAPv3/issues
category:            Network
tested-with:         GHC==8.8.1, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3
description:
  This library provides a pure Haskell implementation of the /Lightweight Directory Access Protocol (LDAP)/ version 3 as specified in <https://tools.ietf.org/html/rfc4511 RFC4511> (see "LDAPv3.Message").
  .
  Serializing and deserializing to and from the wire <https://en.wikipedia.org/wiki/ASN.1 ASN.1> encoding for the purpose of implementing network clients and servers is supported via 'Binary' instances (see <//hackage.haskell.org/package/binary 'binary' package>).
  .
  Moreover, this library also implements /String Representation of Search Filters/ as per <https://tools.ietf.org/html/rfc4515 RFC4515> and /String Representation of Distinguished Names/ as per <https://tools.ietf.org/html/rfc4514 RFC4514> (see "LDAPv3.StringRepr" for details).

extra-source-files: ChangeLog.md

source-repository head
  type:     git
  location: https://github.com/hvr/LDAPv3.git

common defaults
  default-language: Haskell2010
  other-extensions:
    BangPatterns
    CPP
    ConstraintKinds
    DataKinds
    DefaultSignatures
    DeriveFunctor
    DeriveGeneric
    FlexibleContexts
    FlexibleInstances
    GeneralizedNewtypeDeriving
    KindSignatures
    LambdaCase
    MultiParamTypeClasses
    OverloadedStrings
    RecordWildCards
    ScopedTypeVariables
    StandaloneDeriving
    Trustworthy
    TypeFamilies
    TypeOperators
    UndecidableInstances

  build-depends:
    , base          >= 4.8 && < 4.14
    , binary       ^>= 0.8.3
    , bytestring   ^>= 0.10.4
    , text-short   ^>= 0.1.3
    , text         ^>= 1.2.3
    , containers   ^>= 0.5.5 || ^>= 0.6.0
    , deepseq      ^>= 1.4.0
    , int-cast     ^>= 0.2.0
    , newtype      ^>= 0.2.2
    , parsec       ^>= 3.1.13

  if !impl(ghc >= 8.0)
    build-depends:
      , semigroups ^>= 0.19.1

  ghc-options: -Wall

-------------------------------------------------------------------------------

library
  import: defaults

  hs-source-dirs: src
  exposed-modules:
      LDAPv3.Message
      LDAPv3.OID
      LDAPv3.StringRepr
      LDAPv3.ASN1String
  other-modules:
      Common
      Data.Int.Subtypes
      Data.ASN1
      Data.ASN1.Prim
      LDAPv3.AttributeDescription
      LDAPv3.DistinguishedName
      LDAPv3.SearchFilter
      LDAPv3.StringRepr.Class
      LDAPv3.ResultCode
      LDAPv3.Message.Types
      LDAPv3.Message.Annotated

-------------------------------------------------------------------------------

test-suite LDAPv3
  import: defaults

  type: exitcode-stdio-1.0
  hs-source-dirs: test
  main-is: main.hs
  other-modules: Arbitrary

  build-depends:
    , LDAPv3

    , tasty            ^>= 1.2.3
    , tasty-quickcheck ^>= 0.10.1
    , tasty-hunit      ^>= 0.10.0
    , base-encoding    ^>= 0.1.0
    , quickcheck-instances ^>= 0.3.22 && < 0.3.26