packages feed

hls-stylish-haskell-plugin-2.5.0.0: hls-stylish-haskell-plugin.cabal

cabal-version:      2.4
name:               hls-stylish-haskell-plugin
version:            2.5.0.0
synopsis:           Integration with the Stylish Haskell code formatter
description:
  Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
license:            Apache-2.0
license-file:       LICENSE
author:             The Haskell IDE Team
copyright:          The Haskell IDE Team
maintainer:         alan.zimm@gmail.com
category:           Development
build-type:         Simple
extra-source-files:
  LICENSE
  test/testdata/*.hs

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

library
  -- Plugins that need exactprint have not been updated for 9.8 yet
  if impl(ghc >= 9.8)
    buildable: False
  else
    buildable: True
  exposed-modules:  Ide.Plugin.StylishHaskell
  hs-source-dirs:   src
  build-depends:
    , base             >=4.12 && <5
    , directory
    , filepath
    , ghc
    , ghc-boot-th
    , ghcide           == 2.5.0.0
    , hls-plugin-api   == 2.5.0.0
    , lsp-types
    , mtl
    , stylish-haskell  ^>=0.12 || ^>=0.13 || ^>=0.14.2
    , text

  default-language: Haskell2010

test-suite tests
  if impl(ghc >= 9.8)
    buildable: False
  else
    buildable: True
  type:             exitcode-stdio-1.0
  default-language: Haskell2010
  hs-source-dirs:   test
  main-is:          Main.hs
  ghc-options:      -threaded -rtsopts -with-rtsopts=-N
  build-depends:
    , base
    , filepath
    , hls-stylish-haskell-plugin
    , hls-test-utils              == 2.5.0.0