packages feed

hls-explicit-record-fields-plugin-2.5.0.0: hls-explicit-record-fields-plugin.cabal

cabal-version:      3.0
name:               hls-explicit-record-fields-plugin
version:            2.5.0.0
synopsis:           Explicit record fields plugin for Haskell Language Server
description:
  Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
license:            BSD-3-Clause
license-file:       LICENSE
author:             Berk Ozkutuk
maintainer:         berk.ozkutuk@tweag.io
-- copyright:
category:           Development
build-type:         Simple
extra-doc-files:    CHANGELOG.md
extra-source-files:
  test/testdata/**/*.hs

source-repository head
  type:     git
  location: https://github.com/haskell/haskell-language-server

flag pedantic
  description: Enable -Werror
  default:     False
  manual:      True

common warnings
    ghc-options: -Wall

library
    import:           warnings
    exposed-modules:  Ide.Plugin.ExplicitFields
    -- other-modules:
    -- other-extensions:
    build-depends:
      , base                  >=4.12 && <5
      , ghc
      , ghcide                == 2.5.0.0
      , hls-plugin-api        == 2.5.0.0
      , lsp
      , lens
      , hls-graph
      , text
      , syb
      , transformers
      , ghc-boot-th
      , unordered-containers
      , containers
      , aeson
    hs-source-dirs:   src
    default-language: Haskell2010

  if flag(pedantic)
    ghc-options: -Werror
                 -Wwarn=incomplete-record-updates
    
test-suite tests
    import:           warnings
    default-language: Haskell2010
    -- other-modules:
    -- other-extensions:
    type:             exitcode-stdio-1.0
    hs-source-dirs:   test
    main-is:          Main.hs
    build-depends:
      , base
      , filepath
      , text
      , hls-explicit-record-fields-plugin
      , lsp-test
      , hls-test-utils