From c937132caa43bbd4e2360e50e5de5b39cc0ceb24 Mon Sep 17 00:00:00 2001 From: Sandy Maguire Date: Sat, 1 Jun 2019 23:43:41 -0400 Subject: [PATCH] Release polysemy 0.3.0.0 --- ChangeLog.md | 12 ++++---- package.yaml | 2 +- polysemy.cabal | 5 ++-- src/Polysemy.hs | 37 ------------------------- src/Polysemy/Internal/TH/Performance.hs | 15 ---------- 5 files changed, 10 insertions(+), 61 deletions(-) delete mode 100644 src/Polysemy/Internal/TH/Performance.hs diff --git a/ChangeLog.md b/ChangeLog.md index 2653518..daec5d6 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,12 @@ # Changelog for polysemy +## 0.3.0.0 (2019-06-01) + +- Removed all deprecated names +- Moved `Random` effect to `polysemy-zoo` +- `makeSem` can now be used to create term-level operators (thanks to + @TheMatten) + ## 0.2.2.0 (2019-05-30) - Added `getInspectorT` to the `Tactical` functions, which allows polysemy code @@ -51,8 +58,3 @@ ## Unreleased changes -- TODO: Remove deprecated names -- NEEDS NEW MAJOR RELEASE: Moved `Random` effect to `polysemy-zoo` -- `makeSem` can now be used to create term-level operators (thanks to - @TheMatten) - diff --git a/package.yaml b/package.yaml index 7064c4e..dc4571e 100644 --- a/package.yaml +++ b/package.yaml @@ -1,5 +1,5 @@ name: polysemy -version: 0.2.2.0 +version: 0.3.0.0 github: "isovector/polysemy" license: BSD3 author: "Sandy Maguire" diff --git a/polysemy.cabal b/polysemy.cabal index ce1e1fc..0a9ba2e 100644 --- a/polysemy.cabal +++ b/polysemy.cabal @@ -4,10 +4,10 @@ cabal-version: 1.12 -- -- see: https://github.com/sol/hpack -- --- hash: e0bd1c00115dcbb08343754f06369914411b0aa48c9838c3fa4cd59cf861607b +-- hash: 9ee186fecebe41f0688aa073f56c51a08f7f3881a86af44a4d91a6cb8b4d6005 name: polysemy -version: 0.2.2.0 +version: 0.3.0.0 synopsis: Higher-order, low-boilerplate, zero-cost free monads. description: Please see the README on GitHub at category: Language @@ -52,7 +52,6 @@ library Polysemy.Internal.NonDet Polysemy.Internal.Tactics Polysemy.Internal.TH.Effect - Polysemy.Internal.TH.Performance Polysemy.Internal.Union Polysemy.IO Polysemy.NonDet diff --git a/src/Polysemy.hs b/src/Polysemy.hs index 52fc6d2..63819c5 100644 --- a/src/Polysemy.hs +++ b/src/Polysemy.hs @@ -109,47 +109,10 @@ module Polysemy , bindT , getInspectorT , Inspector (..) - - -- * Deprecated Names - -- | The following exports are deprecated, and are exposed only for - -- backwards compatability reasons. They will be removed in the next major - -- release. - , Semantic - , runSemantic - , makeSemantic - , makeSemantic_ - , inlineRecursiveCalls ) where import Polysemy.Internal import Polysemy.Internal.Combinators import Polysemy.Internal.TH.Effect -import Polysemy.Internal.TH.Performance import Polysemy.Internal.Tactics --- Imported just for the deprecated names. -import Polysemy.Internal.Union -import Language.Haskell.TH - --------------------------------------------------------------------------------- --- Deprecated names -type Semantic = Sem -{-# DEPRECATED Semantic "Use 'Sem' instead" #-} - -runSemantic :: ∀ m r a - . Monad m - => Semantic r a -> (∀ x. Union r (Sem r) x -> m x) - -> m a -runSemantic = runSem -{-# DEPRECATED runSemantic "Use 'runSem' instead" #-} - - -makeSemantic :: Name -> Q [Dec] -makeSemantic = makeSem -{-# DEPRECATED makeSemantic "Use 'makeSem' instead" #-} - -makeSemantic_ :: Name -> Q [Dec] -makeSemantic_ = makeSem_ -{-# DEPRECATED makeSemantic_ "Use 'makeSem_' instead" #-} - - diff --git a/src/Polysemy/Internal/TH/Performance.hs b/src/Polysemy/Internal/TH/Performance.hs deleted file mode 100644 index c4b0de6..0000000 --- a/src/Polysemy/Internal/TH/Performance.hs +++ /dev/null @@ -1,15 +0,0 @@ -{-# OPTIONS_HADDOCK not-home #-} - -module Polysemy.Internal.TH.Performance - ( inlineRecursiveCalls - ) where - -import Language.Haskell.TH - -{-# DEPRECATED inlineRecursiveCalls - "Enabling polysemy-plugin now automatically inlines recursive calls" - #-} - -inlineRecursiveCalls :: Q [Dec] -> Q [Dec] -inlineRecursiveCalls = id -