Skip to content

Commit

Permalink
Release polysemy-v1.7.0.0 and polysemy-plugin-v0.4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
isovector committed Nov 16, 2021
1 parent 5515064 commit c0cbabb
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 11 deletions.
20 changes: 19 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,25 @@

### Other Changes


## 1.7.0.0 (2021-11-16)

### Breaking Changes

* Added interpreters for `AtomicState` that run in terms of `State`.
* Removed `MemberWithError`
* Removed `DefiningModule`

### Other Changes

* The internal `ElemOf` proof is now implemented as an unsafe integer,
significantly cutting down on generated core.
* Polysemy no longer emits custom type errors for ambiguous effect actions.
These have long been rendered moot by `polysemy-plugin`, and the cases that
they still exist are usually overeager (and wrong.)
* As a result, the core produced by `polysemy` is significantly smaller.
Programs should see a reduction of ~20% in terms and types, and ~60% in
coercions.

## 1.6.0.0 (2021-07-12)

Expand Down Expand Up @@ -44,7 +62,7 @@
([#337](https://github.com/polysemy-research/polysemy/pull/337), [#382](https://github.com/polysemy-research/polysemy/pull/382))
- Restrict the existentially quantified monad in a `Weaving` to `Sem r`
([#333](https://github.com/polysemy-research/polysemy/pull/333), thanks to @A1kmm)
- Added `raise2Under` and `raise3Under`
- Added `raise2Under` and `raise3Under`
([#369](https://github.com/polysemy-research/polysemy/pull/369))
- Added `Raise` and `Subsume`
([#370](https://github.com/polysemy-research/polysemy/pull/370))
Expand Down
4 changes: 2 additions & 2 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: polysemy
version: 1.6.0.0
version: 1.7.0.0
github: "polysemy-research/polysemy"
license: BSD3
author: "Sandy Maguire"
maintainer: "[email protected]"
copyright: "2019 Sandy Maguire"
copyright: "2019-2021 Sandy Maguire"
build-type: Custom

extra-source-files:
Expand Down
4 changes: 4 additions & 0 deletions polysemy-plugin/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 0.4.2.0 (2021-11-16)

- Support for `polysemy-1.7.0.0`

## 0.4.1.0 (2021-10-22)

- The plugin can now use instances in scope to help solve ambiguous type
Expand Down
4 changes: 2 additions & 2 deletions polysemy-plugin/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: polysemy-plugin
version: 0.4.1.0
version: 0.4.2.0
github: "polysemy-research/polysemy"
license: BSD3
author: "Sandy Maguire"
Expand All @@ -20,7 +20,7 @@ dependencies:
- base >= 4.9 && < 5
- ghc >= 8.6.5 && < 10
- ghc-tcplugins-extra >= 0.3 && < 0.5
- polysemy >= 1.3
- polysemy >= 1.7
- syb >= 0.7 && < 0.8
- transformers >= 0.5.2.0 && < 0.6
- containers >= 0.5 && < 0.7
Expand Down
2 changes: 1 addition & 1 deletion polysemy-plugin/polysemy-plugin.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ library
, containers >=0.5 && <0.7
, ghc >=8.6.5 && <10
, ghc-tcplugins-extra >=0.3 && <0.5
, polysemy >=1.3
, polysemy >=1.7
, syb ==0.7.*
, transformers >=0.5.2.0 && <0.6
default-language: Haskell2010
Expand Down
4 changes: 2 additions & 2 deletions polysemy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ cabal-version: 2.0
-- see: https://github.com/sol/hpack

name: polysemy
version: 1.6.0.0
version: 1.7.0.0
synopsis: Higher-order, low-boilerplate free monads.
description: Please see the README on GitHub at <https://github.com/polysemy-research/polysemy#readme>
category: Language
homepage: https://github.com/polysemy-research/polysemy#readme
bug-reports: https://github.com/polysemy-research/polysemy/issues
author: Sandy Maguire
maintainer: [email protected]
copyright: 2019 Sandy Maguire
copyright: 2019-2021 Sandy Maguire
license: BSD3
license-file: LICENSE
build-type: Custom
Expand Down
7 changes: 4 additions & 3 deletions src/Polysemy/AtomicState.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ atomicStateToState = interpret $ \case
-- the notion of atomicity, by transforming it into 'State' and running it
-- with the provided initial state.
--
-- @since TODO
--
-- @since v1.7.0.0
runAtomicStateViaState :: s
-> Sem (AtomicState s ': r) a
-> Sem r (s, a)
Expand All @@ -192,7 +193,7 @@ runAtomicStateViaState s =
-- the notion of atomicity, by transforming it into 'State' and running it
-- with the provided initial state.
--
-- @since TODO
-- @since v1.7.0.0
evalAtomicStateViaState :: s
-> Sem (AtomicState s ': r) a
-> Sem r a
Expand All @@ -205,7 +206,7 @@ evalAtomicStateViaState s =
-- the notion of atomicity, by transforming it into 'State' and running it
-- with the provided initial state.
--
-- @since TODO
-- @since v1.7.0.0
execAtomicStateViaState :: s
-> Sem (AtomicState s ': r) a
-> Sem r s
Expand Down

0 comments on commit c0cbabb

Please sign in to comment.