name:		HaXml
version:	1.21
license:	LGPL
license-file:	COPYRIGHT
author:		Malcolm Wallace <Malcolm.Wallace@cs.york.ac.uk>
maintainer:	author
homepage:	http://www.cs.york.ac.uk/fp/HaXml/
category:	Text, XML
synopsis:	Utilities for manipulating XML documents
description:
	Haskell utilities for parsing, filtering, transforming and
	generating XML documents.
build-type:     Simple
cabal-version:  >=1.2

flag splitBase
  default: True
flag bytestringInBase
  default: False

library
  exposed-modules:
        Text.XML.HaXml,
        Text.XML.HaXml.ByteStringPP,
        Text.XML.HaXml.Combinators,
        Text.XML.HaXml.DtdToHaskell.Convert,
        Text.XML.HaXml.DtdToHaskell.Instance,
        Text.XML.HaXml.DtdToHaskell.TypeDef,
        Text.XML.HaXml.Escape,
        Text.XML.HaXml.Html.Generate,
        Text.XML.HaXml.Html.Parse,
        Text.XML.HaXml.Html.ParseLazy,
        Text.XML.HaXml.Html.Pretty,
        Text.XML.HaXml.Lex,
        Text.XML.HaXml.Namespaces,
        Text.XML.HaXml.OneOfN,
        Text.XML.HaXml.Parse,
        Text.XML.HaXml.ParseLazy,
        Text.XML.HaXml.Posn,
        Text.XML.HaXml.Pretty,
        Text.XML.HaXml.SAX,
        Text.XML.HaXml.Schema.XSDTypeModel,
        Text.XML.HaXml.Schema.Parse,
        Text.XML.HaXml.ShowXmlLazy,
        Text.XML.HaXml.Types,
        Text.XML.HaXml.TypeMapping,
        Text.XML.HaXml.Util,
        Text.XML.HaXml.Validate,
        Text.XML.HaXml.Verbatim,
        Text.XML.HaXml.Wrappers,
        Text.XML.HaXml.XmlContent,
        Text.XML.HaXml.XmlContent.Parser,
        Text.XML.HaXml.XmlContent.Haskell,
        Text.XML.HaXml.Xtract.Combinators,
        Text.XML.HaXml.Xtract.Lex,
        Text.XML.HaXml.Xtract.Parse
  hs-source-dirs: src
  build-depends: haskell98, polyparse >= 1.2, filepath
  if flag(splitBase)
    build-depends: base >= 3 && < 6, pretty, random, containers
  else
    build-depends: base < 3
  if flag(bytestringInBase)
    build-depends: base >= 2 && < 3
  else
    build-depends: base < 2 || >= 3, bytestring
  extensions: CPP, ExistentialQuantification
  cpp-options: -DMYVERSION='\"1.21\"'
  nhc98-options: -K10M

Executable Canonicalise
  GHC-Options: -Wall
  Extensions:  CPP
  Hs-Source-Dirs: src/tools, src
  cpp-options: -DMYVERSION='\"1.21\"'
  Main-Is: Canonicalise.hs

Executable CanonicaliseLazy
  GHC-Options: -Wall
  Extensions:  CPP
  Hs-Source-Dirs: src/tools, src
  cpp-options: -DMYVERSION='\"1.21\"'
  Main-Is: CanonicaliseLazy.hs

Executable Xtract
  GHC-Options: -Wall
  Extensions:  CPP
  Hs-Source-Dirs: src/tools, src
  cpp-options: -DMYVERSION='\"1.21\"'
  Main-Is: Xtract.hs

Executable XtractLazy
  GHC-Options: -Wall
  Extensions:  CPP
  Hs-Source-Dirs: src/tools, src
  cpp-options: -DMYVERSION='\"1.21\"'
  Main-Is: XtractLazy.hs

Executable Validate
  GHC-Options: -Wall
  Extensions:  CPP
  Hs-Source-Dirs: src/tools, src
  cpp-options: -DMYVERSION='\"1.21\"'
  Main-Is: Validate.hs

Executable MkOneOf
  GHC-Options: -Wall
  Extensions:  CPP
  Hs-Source-Dirs: src/tools, src
  cpp-options: -DMYVERSION='\"1.21\"'
  Main-Is: MkOneOf.hs

Executable DtdToHaskell
  GHC-Options: -Wall
  Extensions:  CPP
  Hs-Source-Dirs: src/tools, src
  cpp-options: -DMYVERSION='\"1.21\"'
  Main-Is: DtdToHaskell.hs

Executable XsdToHaskell
  GHC-Options: -Wall
  Extensions:  CPP
  Hs-Source-Dirs: src/tools, src
  cpp-options: -DMYVERSION='\"1.21\"'
  Main-Is: XsdToHaskell.hs
