Skip to content

Commit

Permalink
Remove lowering functions and forklift (#438)
Browse files Browse the repository at this point in the history
* Remove forklift

* Remove lowerResource

* Changelog

* changelog

* Remove (@)

* Update documentation

* Remove the ancient benchmarks

* Remove fixpoint lowerings
  • Loading branch information
isovector authored Dec 1, 2021
1 parent 3f965b7 commit 6ece463
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 872 deletions.
12 changes: 12 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,21 @@

- Removed `Polysemy.View`
- Removed `Polysemy.Law`
- Removed `(@)` and `(@@)` from `Polysemy`
- Removed `withLowerToIO` from `Polysemy`. Use `withWeavingToFinal` instead.
- Removed `asyncToIO` and `lowerAsync` from `Polysemy.Async`. Use
`asyncToIOFinal` instead.
- Removed `lowerEmbedded` from `Polysemy.IO`. Use `embedToMonadIO` instead.
- Removed `lowerError` from `Polysemy.Error`. Use `errorToIOFinal` instead.
- Removed `resourceToIO` and `lowerResource` from `Polysemy.Resource`. Use
`resourceToIOFinal` instead.
- Removed `runFixpoint` and `runFixpointM` from `Polysemy.Fixpoint`. Use
`fixpointToFinal` instead.

### Other Changes

- Exposed `send` from `Polysemy`.

## 1.7.1.0 (2021-11-23)

### Other Changes
Expand Down
64 changes: 0 additions & 64 deletions bench/Poly.hs

This file was deleted.

133 changes: 0 additions & 133 deletions bench/countDown.hs

This file was deleted.

10 changes: 0 additions & 10 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,3 @@ tests:
generated-other-modules:
- Build_doctests

benchmarks:
polysemy-bench:
source-dirs: bench
main: countDown.hs
dependencies:
- criterion
- free
- freer-simple
- mtl
- polysemy
48 changes: 0 additions & 48 deletions polysemy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ library
Polysemy.Internal.CustomErrors
Polysemy.Internal.CustomErrors.Redefined
Polysemy.Internal.Fixpoint
Polysemy.Internal.Forklift
Polysemy.Internal.Index
Polysemy.Internal.Kind
Polysemy.Internal.NonDet
Expand Down Expand Up @@ -130,7 +129,6 @@ test-suite polysemy-test
main-is: Main.hs
other-modules:
AlternativeSpec
AsyncSpec
BracketSpec
DoctestSpec
ErrorSpec
Expand All @@ -139,7 +137,6 @@ test-suite polysemy-test
FixpointSpec
FusionSpec
HigherOrderSpec
InspectorSpec
InterceptSpec
KnownRowSpec
OutputSpec
Expand Down Expand Up @@ -192,48 +189,3 @@ test-suite polysemy-test
MonadFailDesugaring
TypeInType
default-language: Haskell2010

benchmark polysemy-bench
type: exitcode-stdio-1.0
main-is: countDown.hs
other-modules:
Poly
Paths_polysemy
hs-source-dirs:
bench
default-extensions:
DataKinds
DeriveFunctor
FlexibleContexts
GADTs
LambdaCase
PolyKinds
RankNTypes
ScopedTypeVariables
StandaloneDeriving
TypeApplications
TypeOperators
TypeFamilies
UnicodeSyntax
build-depends:
async >=2.2 && <3
, base >=4.9 && <5
, containers >=0.5 && <0.7
, criterion
, first-class-families >=0.5.0.0 && <0.9
, free
, freer-simple
, mtl
, polysemy
, stm ==2.*
, syb ==0.7.*
, template-haskell >=2.12.0.0 && <3
, th-abstraction >=0.3.1.0 && <0.5
, transformers >=0.5.2.0 && <0.6
, type-errors >=0.2.0.0
, unagi-chan >=0.4.0.0 && <0.5
if impl(ghc < 8.6)
default-extensions:
MonadFailDesugaring
TypeInType
default-language: Haskell2010
8 changes: 0 additions & 8 deletions src/Polysemy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,10 @@ module Polysemy
, reinterpret2H
, reinterpret3H

-- * Combinators for Interpreting Directly to IO
, withLowerToIO

-- * Kind Synonyms
, Effect
, EffectRow

-- * Composing IO-based Interpreters
, (.@)
, (.@@)

-- * Tactics
-- | Higher-order effects need to explicitly thread /other effects'/ state
-- through themselves. Tactics are a domain-specific language for describing
Expand All @@ -155,7 +148,6 @@ module Polysemy
import Polysemy.Final
import Polysemy.Internal
import Polysemy.Internal.Combinators
import Polysemy.Internal.Forklift
import Polysemy.Internal.Kind
import Polysemy.Internal.Tactics
import Polysemy.Internal.TH.Effect
Loading

0 comments on commit 6ece463

Please sign in to comment.