name:               openid
version:            0.2.1.0
cabal-version:      >= 1.8
synopsis:           An implementation of the OpenID-2.0 spec.
description:        An implementation of the OpenID-2.0 spec.
category:           Network
author:             Trevor Elliott
homepage:           http://github.com/elliottt/hsopenid
maintainer:         trevor@geekgateway.com
copyright:          (c) 2008. Trevor Elliott <trevor@geekgateway.com>
license:            BSD3
license-file:       LICENSE
build-type:         Simple
tested-with:        GHC == 6.12.1

flag examples
  default:     False
  description: Build an example program

flag split-base
  default:     True
  description: Use the new split base package.

source-repository head
  type:            git
  location:        git://github.com/elliottt/hsopenid.git

library
  build-depends:   base       >= 4.0.0.0 && < 5,
                   base-compat,
                   bytestring >= 0.9.1.0,
                   containers >= 0.2.0.0,
                   HTTP       >= 4000.0.9,
                   monadLib   >= 3.6.0.0,
                   network    >= 2.6.0.0,
                   network-uri>= 2.6.0.0,
                   time       >= 1.1.0.0,
                   xml        >= 1.3.0.0,
                   HsOpenSSL  >= 0.11.4
  hs-source-dirs:  src
  exposed-modules: Codec.Binary.Base64,
                   Codec.Encryption.DH,
                   Data.Digest.OpenSSL.AlternativeHMAC,
                   Data.Digest.OpenSSL.SHA,
                   Network.OpenID,
                   Network.OpenID.Association,
                   Network.OpenID.Association.Manager,
                   Network.OpenID.Association.Map,
                   Network.OpenID.AttributeExchange,
                   Network.OpenID.Authentication,
                   Network.OpenID.Discovery,
                   Network.OpenID.HTTP,
                   Network.OpenID.Normalization,
                   Network.OpenID.SSL
                   Network.OpenID.Types,
                   Network.OpenID.Utils,
                   Text.XRDS
  ghc-options:     -Wall
  extensions:      EmptyDataDecls,
                   FlexibleContexts,
                   FlexibleInstances,
                   ForeignFunctionInterface,
                   GeneralizedNewtypeDeriving,
                   MultiParamTypeClasses

executable openid-test
  main-is:         examples/test.hs
  ghc-options:     -threaded

  if flag(examples)
    buildable:     True
    build-depends: base      >= 4.0.0.0 && < 5,
                   monadLib  >= 3.6.0.0,
                   network   >= 2.2.0.0,
                   HsOpenSSL >= 0.9.0.0,
                   openid

  else
    buildable:     False