Commit Graph

176 Commits

Author SHA1 Message Date
Alexis King
0bbe540c78 Add translate and translateM effect interpreter constructors
These simply help to avoid type annotations by providing some common
cases of effect interpreters.
2017-07-06 11:05:37 -07:00
Alexis King
5d8a224b35 Make it easier to interpret actions in a polymorphic monad
Specifically, this adds sendM, which is identical to send but explicitly
selects the final effect to aid type inference, and it also includes a
MonadBase instance for Eff.
2017-07-06 10:41:12 -07:00
Alexis King
bff3a6fee6 Completely change the exposed API for building effect handlers
This changes the way effect handlers work by removing the more complex
handleRelay and replaceRelay functions and replacing them with a much
simpler, much more opinionated API. The old functions are still
available for now in Control.Monad.Freer.Internal if they are needed.
2017-07-06 10:10:02 -07:00
Alexis King
f360d563d4 Add custom type errors for unsolvable Member constraints 2017-07-05 14:51:01 -07:00
Tomas Janousek
39a7e62cc0 Update changelog (PR #41) 2017-05-10 15:13:24 +02:00
Sandy Maguire
9f6ff9f67d add raise 2017-05-10 15:11:32 +02:00
Tomas Janousek
84762417b7 Release Process: (ab)use merges to make releases reachable 2017-04-16 17:17:12 +02:00
Tomas Janousek
f6128df82a Merge branch 'hlint-backport' into master 2017-04-16 17:02:31 +02:00
Tomas Janousek
9500d8af26 Release 0.3.0.1 2017-04-16 16:38:31 +02:00
Tomas Janousek
5f467b53db Fix hlint "Use module export list" warnings
Addresses #31
2017-04-16 16:38:29 +02:00
Tomas Janousek
988a2987d3 Disable test-hlint flag for non-developer builds
There's little point in having our tests fail randomly whenever hlint
adds new warnings. It just generates noise and work for stackage
curators.

Addresses #31
2017-04-16 16:38:23 +02:00
Tomas Janousek
a792dbeebf Relax hlint bounds
Fixes #31
2017-04-16 16:28:33 +02:00
Tomas Janousek
ff3808b7ab Update freer-effects.cabal 2017-04-16 09:45:05 +02:00
Peter Trsko
da3b972379 Noting relationship with freer in package description
Addresses #29
2017-03-21 15:29:33 +01:00
Peter Trško
765cab34f3 Package freer-extra was renamed to freer-effects-extra (cont.)
Forgot to add "effects" to link text.
2017-03-18 14:42:22 +01:00
Peter Trško
3699695665 Package freer-extra was renamed to freer-effects-extra 2017-03-18 14:41:07 +01:00
Matej Kollar
82fa5bd624 Point people interested in combining with transformers to freer-extra
Also freer-extra has more goodies and is worth mentioning.
2017-03-18 14:39:53 +01:00
Peter Trško
3f911ac627 Updated Release Process regarding deprecations and hpack
* We need to make sure that deprecated definitions are purged when
  scheduled.
* Cabal file is now generated, but some minor changes need to be done
  during release.
2017-03-18 13:32:41 +01:00
Peter Trško
21edc9ea75 Updated ChangeLog regarding changes in Fresh (PR #24) 2017-03-18 13:30:12 +01:00
Colin Woodbury
fe7d62a729 Deprecate runFresh' for evalFresh 2017-03-18 13:30:12 +01:00
Peter Trško
01516e3d08 Coding style 2017-03-18 13:30:12 +01:00
Schell Scivally
75db2ceb29 moved <$> import for 7.8 2017-03-18 13:30:12 +01:00
Schell Scivally
a1e415b967 better Fresh for use with Continuation 2017-03-18 13:30:12 +01:00
Peter Trško
e74c583c0c Missed one bad indentation in hpack config 2017-03-18 12:08:35 +01:00
Peter Trško
3b9f6c7060 Updated ChangeLog: switch to hpack; changes in Coroutine
Addresses #25
2017-03-17 21:30:35 +01:00
Peter Trsko
23550531ef Coding style; naming conventions 2017-03-17 21:04:06 +01:00
Schell Scivally
e122b5b343 better Coroutine w/ return value 2017-03-17 21:04:06 +01:00
Peter Trsko
aeab3f86f9 Correcting indentation in package.yaml
In YAML we use two spaces for indentation.
2017-03-17 11:09:38 +01:00
Peter Trsko
cedd394d9e Applying coding style to tests 2017-03-17 10:31:11 +01:00
Tomas Janousek
029e9a81ae Switch from cabal to hpack
Less duplication in cabal (especially all those conditional ghc-options
everywhere), but maybe less flexibility (e.g. source-repository). Not
sure about this.
2017-03-15 14:34:07 +01:00
Tomas Janousek
e5f8304db9 Use NoImplicitPrelude in tests
And rearrange a few things somewhat, including rewriting the loop tests
almost entirely.

Addresses #5
2017-03-15 14:19:35 +01:00
Tomas Janousek
7d3c69016b Enable and fix additional warnings in bench
Addresses #5
2017-03-15 13:43:47 +01:00
Tomas Janousek
e0b40a13cf Use NoImplicitPrelude in examples
Also add an additional example that implements runCapitalizeM using
handleRelay.

Addresses #5
2017-03-15 13:43:28 +01:00
Tomas Janousek
4b83056f22 Remove examples/src/NonDet.hs
The module isn't imported anywhere so `stack build` works fine even
though ghci fails (forgotten import in #11) and it's a duplicate of
tests/Tests/NonDet.hs anyway.

Addresses #11
2017-03-15 13:41:00 +01:00
Peter Trsko
6948809c5c Updated ChangeLog regarding issue #23
Addresses #23
2017-03-15 11:18:44 +01:00
Peter Trsko
200281205c Coding style; updated ChangeLog 2017-03-15 11:18:29 +01:00
Sandy Maguire
f4a4adb527 Add replaceRelay and friend 2017-03-15 11:18:29 +01:00
Peter Trsko
fe1c7fa323 Resolving missing type signature (failing on -Wall)
Addresses #23
2017-03-15 10:48:22 +01:00
Schell Scivally
ed3d45b069 fixes #23 (<<loop>>) 2017-03-15 10:48:22 +01:00
Schell Scivally
9840e483da minimal loop example and test 2017-03-15 10:48:22 +01:00
Schell Scivally
7094f57bcd loop example 2017-03-15 10:48:22 +01:00
Schell Scivally
07ee1289bc minimal example of <<loop>> 2017-03-15 10:48:22 +01:00
Peter Trško
cd5c078398 Stackage badges; better link for checking dependencies 2017-03-12 22:29:02 +01:00
Peter Trško
ad22a48389 Minor stylistic cleanup 2017-03-12 22:24:35 +01:00
Peter Trško
816e2eb842 Merge pull request #19 from 'fosskers/master'
Addresses #5
2017-03-12 22:19:17 +01:00
Colin Woodbury
176204a7b6
Add back HTTP bench 2017-03-12 13:14:29 -07:00
Colin Woodbury
4d8b70a9ca
Add benchmarks to compare extensible-effects 2017-03-12 13:02:28 -07:00
Peter Trško
49364a217d Correcting Data.OpenUnion module documentation 2017-03-06 01:36:41 +01:00
Peter Trško
a19b788b36 Package release process documentation 2017-03-06 01:31:25 +01:00
Peter Trško
5e6270eed8 Recreated section for unreleased changes in ChangeLog 2017-03-06 01:21:00 +01:00