Felix Yan
125cc5ec26
Allow th-abstraction 0.4
...
Builds fine and all tests pass here.
2020-10-17 06:53:17 +08:00
galagora
62f5af5d03
polysemy-plugin v0.2.5.1 ( #377 )
2020-09-15 09:21:05 +02:00
Torsten Schmits
766bc047fd
correct two switched INLINE pragmas ( #375 )
2020-09-08 15:00:42 +02:00
Georgi Lyubenov
575f8f62e2
Merge pull request #376 from tek/update-github-org
...
update github org
2020-09-08 15:44:01 +03:00
Torsten Schmits
89a664d8fe
update github org
2020-09-08 14:18:38 +02:00
Daniel Goertzen
de19721ef5
add Applicative methods ( #372 )
...
* add Applicative methods
- add Applicative `liftA2`, `(<*)`, and `(*>)`
- resolves https://github.com/polysemy-research/polysemy/issues/368
* remove redundant Monad return definition
- As directed in review of https://github.com/polysemy-research/polysemy/pull/372
2020-07-31 07:15:44 +02:00
Jeremy Schlatter
235813da00
Small code simplifications ( #360 )
...
* Small code simplifications
These are all replacements of the form
before: fmap f $ x
after: f <$> x
Minor change, but feels marginally easier to read to me.
Co-authored-by: TheMatten <matten@tuta.io>
2020-07-29 17:20:11 +02:00
Georgi Lyubenov
e99cb94305
Merge pull request #348 from polysemy-research/lts161_fix_warnings
...
Fix warnings from upgrading to ghc 8.8.3
2020-07-29 18:08:47 +03:00
Georgi Lyubenov
013bf97f77
Ifdef away warnings that only occur on ghc>=8.8
2020-07-29 17:49:54 +03:00
Georgi Lyubenov
28246caa6c
Fix warnings from upgrading to ghc 8.8.3
2020-07-29 17:49:24 +03:00
TheMatten
a5d0500064
Add 'Raise' and 'Subsume' ( #370 )
...
Add 'Raise' and 'Subsume'
2020-07-29 16:19:37 +02:00
Georgi Lyubenov
b9c551f8d0
Merge pull request #369 from tek/raise2Under
...
Add raise2Under and raise3Under
These combinators are like raiseUnder, but place the new effect at the
second and third position in the list.
This is for interpreters that consume two effects, delegating to two other interpreters, who share a dependency which is then interpreted by the outer interpreter.
See https://github.com/polysemy-research/polysemy/pull/369
2020-07-28 21:33:06 +03:00
Torsten Schmits
c2da2f5cb8
raise2Under and raise3Under
...
These combinators are like raiseUnder, but place the new effect at the
second and third position in the list.
2020-07-28 17:55:23 +02:00
TheMatten
ce0fa3d19e
Update README ( #364 )
...
Update README
2020-07-22 09:04:01 +02:00
Georgi Lyubenov
8b80661f5d
Merge pull request #357 from jeremyschlatter/patch-1
...
Fix typo
2020-06-27 16:29:22 +03:00
Jeremy Schlatter
a8c6681ace
Fix typo
2020-06-26 18:08:48 -07:00
Georgi Lyubenov
0082a8e854
Merge pull request #346 from A1kmm/tcplugins-0.4
...
Support newer ghc-tcplugins-extra in latest stackage LTS
2020-06-18 20:36:00 +03:00
Andrew Miller
64f63c7739
Support newer ghc-tcplugins-extra in latest stackage LTS
2020-06-18 22:30:42 +10:00
Georgi Lyubenov
ccb9116429
Add #304/#333 to unreleased changelog
2020-06-17 18:04:06 +03:00
Andrew Miller
a09b3a7750
Make interpretH and friends expose Monad on existential m ( #333 )
...
* Make interpretH and friends expose Monad on existential m
In the process replace the existentially quantified parameter `m` of the
Weaving with a parameter `r` and use `Sem r`.
* Remove unnecessary datatype context
* Rename some type variables that were confusing
* Expose Sem rInitial to function parameters to combinators and Final
* Remove UnionDetails layer
* Remove WeavingDetails
* Fix build on ghc 8.4.4
* Clean up for consistency and formatting
Co-authored-by: Andrew Miller <andrew@amxl.com>
2020-06-17 16:35:19 +02:00
Georgi Lyubenov
ab362369dc
Fix wrong date in polysemy-plugin changelog
...
Fixes #344
2020-06-15 07:49:45 +03:00
Georgi Lyubenov
4c8e7633eb
Prefer const to pure
2020-06-15 07:48:27 +03:00
Georgi Lyubenov
d13a1cb4b9
Add bracket_ to unreleased changes
2020-06-15 07:48:13 +03:00
Georgi Lyubenov
d4b8e0850b
Merge pull request #335 from expipiplus1/joe-bracket_
...
Add bracket_ to Polysemy.Resource
2020-06-15 07:46:51 +03:00
Georgi Lyubenov
c1ae34d2ce
Merge pull request #343 from polysemy-research/unreleased-changes
...
Move unreleased changes to a more visible place
2020-06-15 07:37:55 +03:00
Georgi Lyubenov
d04e3a1785
Add Cancel to unreleased changes
2020-06-09 00:01:19 +03:00
Georgi Lyubenov
e4ff91c356
Move unreleased changes to top, so you can't miss them
2020-06-09 00:01:05 +03:00
Aidan Gilmore
ded35ce7e0
Added ability to cancel running Async actions ( #321 )
...
* Added ability to cancel running Async actions
* Removed unsafe async helper function
Co-authored-by: Aidan Gilmore <aidan.gilmore@treehousemedical.ca>
2020-06-08 22:32:28 +02:00
Georgi Lyubenov
5fe93988c6
Merge pull request #337 from polysemy-research/336_build-with-810
...
* Build with 8.10.1
* Add 8.10.1 to travis matrix
2020-04-29 14:56:48 +03:00
Georgi Lyubenov
6cfe2af3b4
Try to enable 8.10.1 building in travis
2020-04-29 11:02:58 +03:00
Joe Hermaszewski
9f397cd4b1
Add bracket_ to Polysemy.Resource
...
Minor version bump too
2020-04-29 10:18:54 +08:00
Georgi Lyubenov
4eece51af6
ifdef the 810 parts so we still build on older ghcs
2020-04-28 21:20:12 +03:00
Georgi Lyubenov
e82cbbd4d6
Fix import issues
...
* Ct (and friends) now comes from Constraints
* There was an ifdef'd part that uses a function "bool" which isn't
imported when the ifdef triggers
2020-04-28 20:16:42 +03:00
Joe Hermaszewski
016c16fbb1
Add Input.inputs to mirror Reader.asks ( #327 )
2020-03-14 10:15:35 +01:00
TheMatten
e90efd5862
Merge pull request #326 from polysemy-research/fcf-bounds
...
Relax `first-class-families` bounds
2020-03-10 08:46:54 +01:00
TheMatten
ad07c63b9f
Relax fcf bounds
2020-03-10 08:35:34 +01:00
KingoftheHomeless
72dc96fbd1
Credit where credit is due ( #320 )
2020-02-16 13:47:36 +01:00
KingoftheHomeless
d51e0dd628
Add missing item to changelog ( #319 )
2020-02-14 19:41:15 +01:00
KingoftheHomeless
3c731186cb
1.3.0.0 ( #318 )
...
* v1.3.0.0
* Update version and version bounds for polysemy and polysemy-plugin
2020-02-13 21:21:32 +01:00
KingoftheHomeless
8d49b677fc
Add lazy interpretations for Output and Writer ( #311 )
...
* Add lazy interpretations for Output and Writer
* INLINE the helper function of interpretViaLazyWriter
* Added strictness tests for runLazyWriter
2020-02-13 21:20:24 +01:00
KingoftheHomeless
6f9f4541f5
Bump bounds for first-class-families ( #313 )
2020-01-31 18:59:04 +01:00
TheMatten
06fed2115c
Merge pull request #308 from srid/patch-1
...
Add zulip badge
2020-01-19 08:54:19 +01:00
Sridhar Ratnakumar
1406361675
Add zulip badge
...
Funprog zulip has a dedicated stream for Polysemy where are a number of discussions are taking place. Sandy is participating as well. So why not make it the official chat for the project?
https://github.com/srid/rib also uses it.
2020-01-18 16:54:21 -05:00
Tyler Weir
089b610254
Add execState to Polysemy.State. ( #303 )
...
* Add execState to Polysemy.State.
* Add execLazyState for symmetry
2019-12-19 23:35:26 +01:00
Georgi Lyubenov
124b473964
Bring back monadLib with a clarification comment ( #300 )
2019-12-16 09:35:04 +02:00
Georgi Lyubenov
49afd96b45
Remove extra-deps that are now in resolver ( #299 )
...
* Remove extra-deps that are now in resolver
Notably this bumps the following libraries:
* aeson: 1.4.3.0 -> 1.4.6.0
* bifunctors: 5.5.4 -> 5.5.6
* inspection-testing: 0.4.2 -> 0.4.2.2
* th-abstraction: 0.3.1.0 -> 0.3.1.0@rev:1
* Remove monadLib, it's unused
2019-12-14 22:13:07 +02:00
KingoftheHomeless
8385c9986e
Update resolver ( #298 )
2019-12-13 23:11:07 +01:00
Armando Santos
6823acd5c4
Error utility functions ( #297 )
...
* Added try, tryJust and catchJust to 'Error'
* Added docs
* Fix docs
* Fix docs
2019-12-13 22:56:36 +01:00
Will Song
6aacabb36e
Add runStateSTRef and stateToST ( #295 )
...
* add runStateSTRef and stateToST
* we only need a single type application for the type checker to infer the type of the 2nd embed
* update docstring
2019-12-12 20:20:35 +01:00
KingoftheHomeless
a4868bddd4
Membership proof rewrite, membership testing, Bundle effect ( #282 )
...
* Union rewrite
* Exports, tests, and renamed KnownEffectRow
* Got rid of artifacts accidently introduced
* More documentation. tryMembership seperate from KnownRow
* 'expose' combinator
* Applied review suggestions, add Membership module
* Fixed a replace-all goof
* Scrap expose/Using in favor of interceptUsing/H
* Fixed Haddock failure
2019-12-08 13:52:37 +01:00