Skip to content

Commit

Permalink
Release polysemy-plugin-0.2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
isovector committed Oct 29, 2019
1 parent d7d3a93 commit 8aa10ef
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
5 changes: 5 additions & 0 deletions polysemy-plugin/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Changelog for polysemy-plugin

## 0.2.4.0 (2019-10-29)

- The plugin now works on GHC 8.8.1 (thanks to @googleson78 and @sevanspowell)
- Improved error messages for when you forgot to include `polysemy` itself

## 0.2.3.0 (2019-09-04)

- The plugin will now choose between given effects based on the ability to unify them.
This makes it possible for disambiguation to kick in even when using multiple
instances of the same effect with different type variables,
Expand Down
15 changes: 12 additions & 3 deletions polysemy-plugin/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: polysemy-plugin
version: 0.2.3.0
version: 0.2.4.0
github: "isovector/polysemy"
license: BSD3
author: "Sandy Maguire"
Expand Down Expand Up @@ -34,6 +34,12 @@ custom-setup:
library:
source-dirs: src

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

tests:
polysemy-plugin-test:
main: Main.hs
Expand All @@ -43,8 +49,11 @@ tests:
- -rtsopts
- -with-rtsopts=-N
- -fplugin=Polysemy.Plugin
- -dcore-lint
- -dsuppress-all
when:
- condition: flag(corelint)
ghc-options:
- -dcore-lint
- -dsuppress-all
build-tools:
- hspec-discover
dependencies:
Expand Down
13 changes: 10 additions & 3 deletions polysemy-plugin/polysemy-plugin.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ cabal-version: 1.24
--
-- see: https://github.com/sol/hpack
--
-- hash: 8348af2f14be3efd7dce818f80b5dd436afe615c141b837852c2f1f2536c08b0
-- hash: 82e62a325b42351fc99bb87c3d491920a5a047c179e686cd398c82a9870f5e46

name: polysemy-plugin
version: 0.2.3.0
version: 0.2.4.0
synopsis: Disambiguate obvious uses of effects.
description: Please see the README on GitHub at <https://github.com/isovector/polysemy/tree/master/polysemy-plugin#readme>
category: Polysemy
Expand All @@ -33,6 +33,11 @@ custom-setup
, 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
Expand Down Expand Up @@ -72,7 +77,7 @@ test-suite polysemy-plugin-test
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 -dcore-lint -dsuppress-all
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fplugin=Polysemy.Plugin
build-tool-depends:
hspec-discover:hspec-discover
build-depends:
Expand All @@ -88,4 +93,6 @@ test-suite polysemy-plugin-test
, should-not-typecheck >=2.1.0 && <3
, syb >=0.7 && <0.8
, transformers >=0.5.2.0 && <0.6
if flag(corelint)
ghc-options: -dcore-lint -dsuppress-all
default-language: Haskell2010

0 comments on commit 8aa10ef

Please sign in to comment.