Open Profpatsch opened 2 years ago
fwiw I think tests don't all pass even when they've been compiling but Inmaybbe misremembering...
Since this error is only due to the tests using Either, and we cannot avoid the MonadFail constraint since it is due to makeRegexM
, I suggest we switch to Nothing.
We could also make newtype Error a = Error (Either String a)
which we can write MonadFail for if we want to. Whatever works though.
For posterity, this shows up when compiling against GHC 8.8.1 e.g. see these CI logs : https://github.com/ocramz/aeson-schema/runs/6031979441?check_suite_focus=true#step:4:1082