packages feed

property-list-0.0.1.0: property-list.cabal

name:                   property-list
version:                0.0.1.0
stability:              experimental
license:                PublicDomain

cabal-version:          >= 1.2
build-type:             Simple

author:                 James Cook <james.cook@usma.edu>
maintainer:             James Cook <james.cook@usma.edu>
homepage:               http://code.haskell.org/~mokus/property-list

category:               Data, Parsing, XML
synopsis:               XML property list parser
description:            Parser, data type and formatter for Apple's XML property list 1.0 format.

flag HaXml_1_13
  default:              False
  description:          The Hackage website builder used to be very finicky
                        and the bytestring-0.9.1.5 update frustrated me,
                        because several versions of this package failed to
                        build because of it.  HaXml 1.13 support was added as
                        part of a hack to make it build on the hackage build
                        server.  Hopefully the ghc-6.12 changeover will have
                        fixed things, so I'm eliminating the build hack that
                        was used before.  HaXml-1.13 support remains, though.

Library
  hs-source-dirs:       src
  ghc-options:          -fwarn-unused-binds -fwarn-unused-imports
  exposed-modules:      Data.PropertyList
                        Data.PropertyList.Algebra
                        Data.PropertyList.Xml
                        
  other-modules:        Data.PropertyList.Types
                        Data.PropertyList.PropertyListItem
                        Data.PropertyList.KeyPath
                        Data.PropertyList.Xml.Parse
                        Data.PropertyList.Xml.Types
  build-depends:        base >= 4 && <5,
                        bytestring,
                        bytestring-class,
                        category-extras,
                        containers, 
                        dataenc,
                        mtl,
                        old-locale,
                        pretty,
                        syb,
                        template-haskell,
                        time,
                        th-fold

  if flag(HaXml_1_13)
    other-modules:      Data.PropertyList.Xml.Dtd_1_13
    cpp-options:        -DHaXml_1_13
    build-depends:      HaXml >= 1.13 && <1.14
                        
  else
    other-modules:      Data.PropertyList.Xml.Dtd
    build-depends:      HaXml >= 1.19