Closed richsmith92 closed 7 years ago
This looks good, but can I ask for:
@since
comment@snoyberg I added a test case but please review it. It seems a bit too trivial for me (2 of 3 tests just check that function is same as its definition). Besides that, are rewrite rules fired for tests?
also CI build fails on lts-2
because it doesn't have sublistOf
in QuickCheck. Not sure if we can ignore this.
For sublistOf
, how about using #if MIN_VERSION_QuickCheck(...)
in the test suite to make it compile with old and new LTSes. That way we still sanity check old LTS versions, but get the extra tests too.
Also, I'm OK with this level of complexity for the tests, thank you for adding them 👍
I amended the last commit.
Some checks still fail with
ghc-pkg: streamingProcess: runInteractiveProcess: pipe: resource exhausted (Too many open files)
but I guess it's some kind of a system issue.
Yes, just a system issue, I'll restart the builds.
Added replaceElem and replaceSeq functions
and rewrite rules for Text.