cabal-version:       1.24
-- Version number for the format used by this .cabal file.

-- The name of the package.
name:                superdoc

-- The package version.  See the Haskell package versioning policy (PVP) 
-- for standards guiding when and how versions should be incremented.
-- http://www.haskell.org/haskellwiki/Package_versioning_policy
-- PVP summary:      +-+------- breaking API changes
--                   | | +----- non-breaking API additions
--                   | | | +--- code changes with no API change
version:             0.1.2.8

-- A short (one-line) description of the package.
synopsis:            Additional documentation markup and Unicode support

-- A longer description of the package.
description:
  This package extends Cabal's documentation building capabilities.
  It extends the Haddock markup language with syntax for subscripts,
  superscripts, bold text, non-breaking spaces, and images. Moreover,
  it works around various bugs in Haddock's and HsColour's Unicode
  support, making it possible to use UTF8 encodings in both source
  code and documentation comments. 
  .
  This package is designed to work transparently. It provides a custom
  main function that package maintainers can use in their Setup.hs
  file. In most cases, this is as simple as setting the build-type to
  Custom, adding superdoc to the package dependencies, and putting the
  following two lines into Setup.hs:
  .
  > import Distribution.Superdoc
  > main = superdocMain
  .
  For more information on the available markup, see "Distribution.Superdoc".

-- URL for the project homepage or repository.
homepage:            http://www.mathstat.dal.ca/~selinger/superdoc/

-- The license under which the package is released.
license:             BSD3

-- The file containing the license text.
license-file:        LICENSE

-- The package author(s).
author:              Peter Selinger

-- An email address to which users can send suggestions, bug reports, and 
-- patches.
maintainer:          selinger@mathstat.dal.ca

-- A copyright notice.
copyright:           Copyright (c) 2013-2018 Peter Selinger

-- A classification category for future use by the package catalogue
-- Hackage. These categories have not yet been specified, but the
-- upper levels of the module hierarchy make a good start.
category:            Distribution

-- The type of build used by this package.
build-type:          Custom

-- A list of additional files to be included in source distributions
-- built with setup sdist.
extra-source-files:  
  images/*.png ChangeLog scripts/preproc.sh scripts/preproc.bat

library
  -- Modules exported by the library.
  exposed-modules:     Distribution.Superdoc, Distribution.Superdoc.Hooks, Distribution.Superdoc.Markup, Distribution.Superdoc.UTF8
  
  -- Modules included in this library but not exported.
  -- other-modules:       
  
  -- Other library packages from which modules are imported.
  build-depends:       base >= 4.5 && < 5, Cabal >= 1.24, containers >=0.4, directory >=1.1, filepath >=1.3

  default-language: Haskell2010
  
executable superdoc-armor
  -- .hs or .lhs file containing the Main module.
  main-is:             superdoc-armor.hs
  
  -- Root directories for the module hierarchy.
  hs-source-dirs:      programs
  
  -- Modules included in this executable, other than Main.
  -- other-modules:
  
  -- Other library packages from which modules are imported.
  build-depends:       base >=4.5 && < 5, Cabal >= 1.24, containers >=0.4, directory >=1.1, filepath >=1.3, superdoc

  default-language: Haskell2010

custom-setup
  setup-depends:       base >= 4.5, Cabal >= 1.24, containers >=0.4, directory >=1.1, filepath >=1.3