Commit Graph

16 Commits

Author SHA1 Message Date
Sandy Maguire
0a1ce2b837 Add hspec-discover to package build-tools
Fixes #111
2019-06-15 20:12:18 -04:00
Sandy Maguire
82f86add29
Custom type error testing (#113)
This PR adds doctests allowing us to write tests for the custom type errors. Having this stuff reified in the test suite means we can iterate on the implementations and give much better QA.
2019-06-15 20:04:11 -04:00
Sandy Maguire
b5d086b859 Release polysemy-plugin 0.2.1.0 2019-06-14 11:38:47 -04:00
Sandy Maguire
18e16f68db Release polysemy-plugin 0.2.0.3 2019-06-13 15:39:57 -04:00
Sandy Maguire
fc88a961ad
Ensure wanted constraints are emitted only once. (#102)
* Ensure wanted constraints are emitted only once.

This is a fix for the "solveSimpleWanteds: too many iterations" problem
that people are running into. In these cases, the plugin is being asked
to solve the same `Member` constraint several times, and generating
a new wanted each time. In doing so, GHC thinks that work was done, so
it will ask the plugin to run again next time. This process diverges,
and produces the error.

Fixes #79
2019-06-13 14:39:49 -04:00
Sandy Maguire
4ca49cba2b Ensure polysemy-plugin's package.yaml is correct 2019-06-12 09:32:09 -04:00
Sandy Maguire
1813b53750 Release polysemy-plugin 0.2.0.2 2019-06-09 00:27:18 -04:00
Sandy Maguire
8dfafb9b75 Release plugin version 0.2.0.1 2019-05-28 15:52:53 -04:00
Sandy Maguire
09ca7b9233 Release polysemy-plugin-0.2.0.0 2019-05-23 17:06:24 -04:00
Sandy Maguire
ff222d826a
Automatically inline recursive calls in the plugin (#52)
* Inline recursive calls + bonus passes for inlining

* Broken inspection test

* Bug in inspection testing

* Deprecate inlineRecursiveCalls

* Move inlineRecursiveCalls into the deprecated section
2019-05-20 02:15:18 -04:00
Sandy Maguire
76d5f1953e
Release 0.1.2.1 (#51) 2019-05-18 11:42:14 -04:00
Sandy Maguire
c3e13cadc7 Let plugin deal with incorrect polymorphism 2019-05-01 15:13:51 -04:00
Sandy Maguire
889e289363 Minor typo 2019-04-27 22:54:42 -04:00
Sandy Maguire
2d0bfd96ac Readme 2019-04-27 22:52:23 -04:00
Sandy Maguire
ec58986443 Plugin works + tests 2019-04-27 22:39:18 -04:00
Sandy Maguire
30169352e4 plugin 2019-04-20 18:31:17 -04:00