cabal-version: 2.0

-- This file has been generated from package.yaml by hpack version 0.35.2.
--
-- see: https://github.com/sol/hpack

name:           polysemy-plugin
version:        0.4.5.2
x-revision: 2
synopsis:       Disambiguate obvious uses of effects.
description:    Please see the README on GitHub at <https://github.com/polysemy-research/polysemy/tree/master/polysemy-plugin#readme>
category:       Polysemy
homepage:       https://github.com/polysemy-research/polysemy#readme
bug-reports:    https://github.com/polysemy-research/polysemy/issues
author:         Sandy Maguire
maintainer:     sandy@sandymaguire.me
copyright:      2019 Sandy Maguire
license:        BSD3
license-file:   LICENSE
build-type:     Custom
extra-source-files:
    README.md
    ChangeLog.md

source-repository head
  type: git
  location: https://github.com/polysemy-research/polysemy

custom-setup
  setup-depends:
      Cabal <3.13
    , base >=4.9 && <5
    , cabal-doctest >=1.0.6 && <1.1

flag corelint
  description: Perform the corelint tests
  manual: True
  default: False

library
  exposed-modules:
      Polysemy.Plugin
      Polysemy.Plugin.Fundep
      Polysemy.Plugin.Fundep.Stuff
      Polysemy.Plugin.Fundep.Unification
      Polysemy.Plugin.Fundep.Utils
  other-modules:
      Paths_polysemy_plugin
  autogen-modules:
      Paths_polysemy_plugin
  hs-source-dirs:
      src
  default-extensions:
      DataKinds
      DeriveFunctor
      FlexibleContexts
      GADTs
      LambdaCase
      PolyKinds
      RankNTypes
      ScopedTypeVariables
      StandaloneDeriving
      TypeApplications
      TypeOperators
      TypeFamilies
      UnicodeSyntax
  build-depends:
      base >=4.9 && <5
    , containers >=0.5 && <0.8
    , ghc >=8.6.5 && <10
    , ghc-tcplugins-extra >=0.3 && <0.5
    , polysemy >=1.7
    , syb ==0.7.*
    , transformers >=0.5.2.0 && <0.7
  default-language: Haskell2010

test-suite polysemy-plugin-test
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      AmbiguousSpec
      DoctestSpec
      ExampleSpec
      InsertSpec
      LegitimateTypeErrorSpec
      MultipleVarsSpec
      PluginSpec
      TypeErrors
      VDQSpec
      Paths_polysemy_plugin
      Build_doctests
  autogen-modules:
      Paths_polysemy_plugin
      Build_doctests
  hs-source-dirs:
      test
  default-extensions:
      DataKinds
      DeriveFunctor
      FlexibleContexts
      GADTs
      LambdaCase
      PolyKinds
      RankNTypes
      ScopedTypeVariables
      StandaloneDeriving
      TypeApplications
      TypeOperators
      TypeFamilies
      UnicodeSyntax
  ghc-options: -threaded -rtsopts -with-rtsopts=-N -fplugin=Polysemy.Plugin
  build-depends:
      base >=4.9 && <5
    , containers >=0.5 && <0.8
    , doctest >=0.16.0.1 && <0.23
    , ghc >=8.6.5 && <10
    , ghc-tcplugins-extra >=0.3 && <0.5
    , hspec >=2.6.0 && <3
    , hspec-discover
    , inspection-testing >=0.4.2 && <0.7
    , polysemy >=1.3.0.0
    , polysemy-plugin
    , should-not-typecheck >=2.1.0 && <3
    , syb ==0.7.*
    , transformers >=0.5.2.0 && <0.7
  default-language: Haskell2010
  if flag(corelint)
    ghc-options: -dcore-lint -dsuppress-all