Skip to content

Conversation

@jh3141
Copy link

@jh3141 jh3141 commented May 5, 2016

isSingleton matches a list or other Foldable instance that contains only a single item
followedBy matches a list or Foldable by matching the head to one matcher and the tail to another
These changes rely on the Foldable changes from pull request #9 , so presumably are also going to break your CI build for the same reason. If you prefer them without the Foldable changes it should be trivial to change them to work only on lists.

jh3141 added 5 commits May 5, 2016 21:30
This relies on the updated definitions of various functions in the base-4.8.0.0
Prelude, so have updated dependencies and bumped version number.  It may be
possible to revert to base-4.5.0.0 if desired by explicitly using Foldable
functions rather than defaulting to list functions, but as I don't have an
appropriate installation to test it on I've not done so.
(Basically just a copy of the hunit-rematch module with the imports and
dependencies altered to use Tasty rather than HUnit.)
using the Data.Data.Data typeclass, isDataConstr and isDataValue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant