packages feed

pagination-0.2.2: pagination.cabal

cabal-version:   1.18
name:            pagination
version:         0.2.2
license:         BSD3
license-file:    LICENSE.md
maintainer:      Mark Karpov <markkarpov92@gmail.com>
author:          Mark Karpov <markkarpov92@gmail.com>
tested-with:     ghc ==8.8.4 ghc ==8.10.4 ghc ==9.0.1
homepage:        https://github.com/mrkkrp/pagination
bug-reports:     https://github.com/mrkkrp/pagination/issues
synopsis:        Framework-agnostic pagination boilerplate
description:     Framework-agnostic pagination boilerplate.
category:        Data
build-type:      Simple
extra-doc-files:
    CHANGELOG.md
    README.md

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

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

library
    exposed-modules:  Data.Pagination
    default-language: Haskell2010
    build-depends:
        base >=4.13 && <5.0,
        deepseq >=1.3 && <1.5,
        exceptions >=0.6 && <0.11

    if flag(dev)
        ghc-options: -Wall -Werror

    else
        ghc-options: -O2 -Wall

    if flag(dev)
        ghc-options:
            -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns
            -Wnoncanonical-monad-instances

test-suite tests
    type:             exitcode-stdio-1.0
    main-is:          Main.hs
    hs-source-dirs:   tests
    default-language: Haskell2010
    build-depends:
        base >=4.13 && <5.0,
        QuickCheck >=2.10 && <3.0,
        exceptions >=0.6 && <0.11,
        hspec >=2.0 && <3.0,
        pagination

    if flag(dev)
        ghc-options: -Wall -Werror

    else
        ghc-options: -O2 -Wall