cabal-version: 2.4
name: ghc-prof
version: 1.4.1.10
synopsis: Library for parsing GHC time and allocation profiling reports
description: ghc-prof is a library for parsing GHC time and allocation profiling reports.
homepage: https://github.com/maoe/ghc-prof
license: BSD-3-Clause
license-file: LICENSE
author: Mitsutoshi Aoe
maintainer: Mitsutoshi Aoe <me@maoe.name>
copyright: Copyright (C) 2013-2021 Mitsutoshi Aoe
category: Development
build-type: Simple
extra-source-files:
  CHANGELOG.md
  README.md
tested-with: GHC == 7.6.3
  || == 7.8.4
  || == 7.10.3
  || == 8.0.2
  || == 8.2.2
  || == 8.4.1
  || == 8.4.2
  || == 8.4.3
  || == 8.4.4
  || == 8.6.1
  || == 8.6.2
  || == 8.6.3
  || == 8.6.4
  || == 8.6.5
  || == 8.8.1
  || == 8.8.2
  || == 8.8.3
  || == 8.8.4
  || == 8.10.1
  || == 8.10.2
  || == 8.10.3
  || == 8.10.4
  || == 9.0.1

flag dump
  description: Build the executable "dump"
  default: False

library
  exposed-modules:
    GHC.Prof
    GHC.Prof.Parser
    GHC.Prof.Types
    GHC.Prof.CostCentreTree
  other-modules:
    Control.Monad.Extras
  build-depends:
      base >= 4.6 && < 4.16
    , attoparsec < 0.15
    , containers >= 0.5 && < 0.7
    , scientific < 0.4
    , text
    , time
  hs-source-dirs: src
  ghc-options: -Wall
  default-language: Haskell2010

executable dump
  if flag(dump)
    buildable: True
  else
    buildable: False

  main-is: dump.hs
  hs-source-dirs: bin
  build-depends:
      base
    , containers
    , ghc-prof
    , scientific < 0.4
    , text
  ghc-options: -Wall -rtsopts
  default-language: Haskell2010

test-suite regression
  type: exitcode-stdio-1.0
  hs-source-dirs: tests
  main-is: Regression.hs
  build-depends:
      attoparsec >= 0.10
    , base
    , containers
    , directory
    , filepath
    , ghc-prof
    , process
    , tasty < 1.5
    , tasty-hunit >= 0.9.1 && < 0.11
    , temporary
    , text
  ghc-options: -Wall
  if impl(ghc >= 8.0)
    ghc-options: -Wno-unused-imports
  default-language: Haskell2010

source-repository head
  type: git
  location: https://github.com/maoe/ghc-prof.git