packages feed

miniterion-0.1.1.0: miniterion.cabal

cabal-version:      3.0
name:               miniterion

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

synopsis:           Simple and lightweight benchmark utilities

description:
  Simple benchmarking utilities with API subset of
  <https://hackage.haskell.org/package/criterion criterion> (and also a
  subset of <https://hackage.haskell.org/package/gauge gauge> and
  <https://hackage.haskell.org/package/tasty-bench tasty-bench>).

  The goal of this package is to provide simple and lightweight
  benchmark utilities with less amount of codes and dependency
  packages. For robust and feature rich benchmarking utility, use the
  other packages mentioned above.

license:            MIT
license-file:       LICENSE
author:             8c6794b6
maintainer:         8c6794b6@gmail.com
homepage:           https://github.com/8c6794b6/miniterion
bug-reports:        https://github.com/8c6794b6/miniterion/issues
category:           Benchmarking
build-type:         Simple

extra-doc-files:    CHANGELOG.md
                    README.md

tested-with:          GHC == 9.4.7
                    , GHC == 9.6.2

common basic
    build-depends:    base >= 4.12 && < 5.0
    default-language: Haskell2010
    ghc-options:      -Wall

flag dev
    description:      Flag for internal development
    default:          False
    manual:           True

library
    import:           basic
    exposed-modules:  Miniterion
    build-depends:    deepseq >= 1.4 && < 1.6
    hs-source-dirs:   src
    if flag(dev)
      cpp-options: -DDEV

test-suite miniterion-test
    import:           basic
    type:             exitcode-stdio-1.0
    hs-source-dirs:   test
    main-is:          Main.hs
    build-depends:    miniterion
                    , directory   >= 1.3 && < 1.4
                    , tasty       >= 1.4 && < 1.6
                    , tasty-hunit >= 0.10 && < 0.11
   if flag(dev)
     cpp-options: -DDEV

benchmark fibo
    default-language: Haskell2010
    type:             exitcode-stdio-1.0
    hs-source-dirs:   bench
    main-is:          Main.hs
    build-depends:    base
                    , miniterion

source-repository head
  type:     git
  location: https://github.com/8c6794b6/miniterion.git