Conversation
|
At least for the docs stuff, I wasn't intending to use MonadFail (in fact I think it's a huge antipattern), so unless there's a particular reason we want to update to GHC 8.6.x very soon, I'd rather refactor so that these sorts of changes won't be necessary and then upgrade; does that sound okay? |
|
@hdgarrood For sure! I don't intend on making changes in that area anymore and you've got push permissions for this branch, so knock yourself out :) |
|
Ah I see: most of the Since most of them seem to be due to pattern matches like expr@(TypedValue _ value ty) <- infer ...how do we feel about having data InferredValue = InferredValue
{ inferredCheck :: Bool
, inferredValue :: Expr
, inferredType :: Type
, inferredExpr :: Expr
}where the and we can recover the current |
|
Actually how about we just set |
|
I guess I'd be fine with setting that flag. We could also just make a function that does that pattern match and throws an |
|
Yep, that should be fine too. I think I prefer the |
This enables us to remove all references to MonadFail
|
Looks good to me! Sorry for not getting to this myself. |
|
No worries at all :) |
Having to propagate the
MonadFail's this far is a bit unfortunate but I figured I wouldn't do any refactoring and just do the dumbest updates possible for now.EDIT:
The network updates broke the networking code in
Command.Ide, I'll look into that.