packages feed

assignment-0.0.1.0: assignment.cabal

cabal-version:   2.4
name:            assignment
version:         0.0.1.0
license:         BSD-3-Clause
license-file:    LICENSE.md
maintainer:      Mark Karpov <markkarpov92@gmail.com>
author:          Mark Karpov <markkarpov92@gmail.com>
tested-with:     ghc ==9.8.2 ghc ==9.10.1
homepage:        https://github.com/mrkkrp/assignment
bug-reports:     https://github.com/mrkkrp/assignment/issues
synopsis:        A solution to the assignment problem
description:     A solution to the assignment problem.
category:        Algorithms
build-type:      Simple
extra-doc-files:
    CHANGELOG.md
    README.md

source-repository head
    type:     git
    location: https://github.com/mrkkrp/assignment.git

flag dev
    description: Turn on development settings.
    default:     False
    manual:      True

library
    exposed-modules:  Data.Algorithm.Assignment
    default-language: GHC2021
    build-depends:
        base >=4.15 && <5,
        array >=0.5.6 && <0.6

    if flag(dev)
        ghc-options:
            -Wall -Werror -Wredundant-constraints -Wpartial-fields
            -Wunused-packages -Wno-unused-imports

    else
        ghc-options: -O2 -Wall

test-suite tests
    type:             exitcode-stdio-1.0
    main-is:          Main.hs
    hs-source-dirs:   tests
    default-language: GHC2021
    build-depends:
        QuickCheck >=2.14,
        assignment,
        base >=4.15 && <5,
        hspec >=2.0 && <3

    if flag(dev)
        ghc-options:
            -Wall -Werror -Wredundant-constraints -Wpartial-fields
            -Wunused-packages

    else
        ghc-options: -O2 -Wall

benchmark bench-speed
    type:             exitcode-stdio-1.0
    main-is:          Main.hs
    hs-source-dirs:   bench/speed
    default-language: GHC2021
    build-depends:
        assignment,
        base >=4.15 && <5,
        criterion >=0.6.2.1 && <1.7

    if flag(dev)
        ghc-options:
            -Wall -Werror -Wredundant-constraints -Wpartial-fields
            -Wunused-packages

    else
        ghc-options: -O2 -Wall

benchmark bench-memory
    type:             exitcode-stdio-1.0
    main-is:          Main.hs
    hs-source-dirs:   bench/memory
    default-language: GHC2021
    build-depends:
        assignment,
        base >=4.15 && <5,
        weigh >=0.0.4

    if flag(dev)
        ghc-options:
            -Wall -Werror -Wredundant-constraints -Wpartial-fields
            -Wunused-packages

    else
        ghc-options: -O2 -Wall