packages feed

hlint-plugin-1.0.0: hlint-plugin.cabal

cabal-version:      3.0
name:               hlint-plugin
version:            1.0.0
synopsis:           GHC plugin for hlint
description:        This package provides an GHC plugin that runs `hlint` on the
                    compiled module.  The main advantages of doing this are:
                    .
                    * Better integration with GHC tooling
                    * You only have to lint modules that you rebuild
                    * You don't have to parse the module twice
license:            BSD-3-Clause
license-file:       LICENSE
author:             Mercury Technologies
maintainer:         gabriella@mercury.com
copyright:          2023 Mercury Technologies
build-type:         Simple
extra-doc-files:    CHANGELOG.md

library
    hs-source-dirs:   src
    build-depends:    base >=4.15.0.0 && < 5
                    , containers
    exposed-modules:  HLint.Plugin
                    , HLint.Plugin.Settings
    default-language: Haskell2010
    ghc-options:      -Wall

    if impl(ghc >= 9.0 && < 9.2)
        hs-source-dirs: ghc90
        build-depends: hlint >= 3.3   && < 3.4
                     , ghc   >= 9.0.2 && < 9.2
    if impl(ghc >= 9.2 && < 9.4)
        hs-source-dirs: ghc92
        build-depends: hlint >= 3.4   && < 3.5
                     , ghc   >= 9.2.1 && < 9.4
    if impl(ghc >= 9.4 && < 9.6)
        hs-source-dirs: ghc94
        build-depends: hlint >= 3.5   && < 3.6
                     , ghc   >= 9.4.1 && < 9.6
    if impl(ghc >= 9.6 && < 9.8)
        hs-source-dirs: ghc96
        build-depends: hlint >= 3.6   && < 3.7
                     , ghc   >= 9.6.1 && < 9.8