packages feed

monoidmap-internal-0.3.0.0: monoidmap-internal.cabal

cabal-version:  3.0
name:           monoidmap-internal
version:        0.3.0.0
homepage:       https://github.com/jonathanknowles/monoidmap/tree/HEAD/packages/monoidmap-internal
bug-reports:    https://github.com/jonathanknowles/monoidmap/issues
license:        Apache-2.0
license-file:   LICENSE
author:         Jonathan Knowles
maintainer:     mail@jonathanknowles.net
copyright:      2022–2026 Jonathan Knowles
category:       Data Structures
synopsis:       Internal support for monoidmap.
description:    Internal support for the monoidmap package.

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

common dependency-base
    build-depends:base                          >= 4.14.3.0   && < 4.23
common dependency-containers
    build-depends:containers                    >= 0.6.5.1    && < 0.9
common dependency-deepseq
    build-depends:deepseq                       >= 1.4.4.0    && < 1.6
common dependency-monoid-subclasses
    build-depends:monoid-subclasses             >= 1.2.3      && < 1.3
common dependency-nothunks
    build-depends:nothunks                      >= 0.1.3      && < 0.4
common dependency-tasty-bench
    build-depends:tasty-bench                   >= 0.3.2      && < 0.6

common extensions
    default-extensions:
        BangPatterns
        ConstraintKinds
        DerivingStrategies
        DerivingVia
        FlexibleContexts
        FlexibleInstances
        GeneralizedNewtypeDeriving
        LambdaCase
        MultiParamTypeClasses
        NoImplicitPrelude
        NumericUnderscores
        ScopedTypeVariables
        TupleSections
        TypeApplications
        TypeFamilies
        TypeOperators
        ViewPatterns

source-repository head
    type: git
    location: https://github.com/jonathanknowles/monoidmap
    subdir: packages/monoidmap-internal

library
    import:
      , dependency-base
      , dependency-containers
      , dependency-deepseq
      , dependency-monoid-subclasses
      , dependency-nothunks
      , extensions
    hs-source-dirs:
        components/monoidmap-internal
    exposed-modules:
        Data.MonoidMap.Internal
    default-language:
        Haskell2010

benchmark monoidmap-internal-benchmark
    import:
      , dependency-base
      , dependency-containers
      , dependency-deepseq
      , dependency-tasty-bench
      , extensions
    build-depends:
      , monoidmap-internal
    default-language:
        Haskell2010
    type:
        exitcode-stdio-1.0
    hs-source-dirs:
        components/monoidmap-internal-benchmark
    main-is:
        Main.hs
    -- Report allocation and memory statistics for each benchmark:
    ghc-options:
        "-with-rtsopts=-T"