cabal-version:       2.4
-- Initial package description 'dyepack.cabal' generated by 'cabal init'.
-- For further documentation, see http://haskell.org/cabal/users-guide/

name:                dyepack
version:             0.1.0.0
synopsis:            Programatically identify space leaks in your program.
description:         Identifier space leaks in your program using Simon Marlow's
                     weak pointer technique.
-- bug-reports:
license:             BSD-3-Clause
license-file:        LICENSE
author:              Matthew Pickering
maintainer:          matthewtpickering@gmail.com
-- copyright:
-- category:
extra-source-files:  CHANGELOG.md

library
  exposed-modules:     Debug.Dyepack
  -- other-modules:
  -- other-extensions:
  build-depends:       base ^>=4.12.0.0
                     , generics-sop
  hs-source-dirs:      src
  default-language:    Haskell2010

Flag examples
  description: Build example
  manual: True
  default: False

executable example
  if !flag(examples)
    buildable: False
  main-is:             Main.hs
  build-depends:       base ^>=4.12.0.0
                     , dyepack
  default-language:    Haskell2010
  hs-source-dirs:      example
  if flag(examples)
    ghc-options: -fwhole-archive-hs-libs -debug -threaded -O0 -g3