fix build failure by avoiding refutable pattern match
This commit is contained in:
parent
4bce767ca6
commit
a8cdcf528e
3 changed files with 23 additions and 6 deletions
|
@ -27,3 +27,5 @@ index 973f75629..0de145461 100644
|
|||
|
||||
[[!meta author=jwodder]]
|
||||
[[!tag projects/datalad]]
|
||||
|
||||
> [[fixed|done]] --[[Joey]]
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 1"""
|
||||
date="2020-12-09T16:40:24Z"
|
||||
content="""
|
||||
Indeed, and thank you for the patch.
|
||||
|
||||
However, MonadFail often suggests a code smell, here it's the `Just ... <-`
|
||||
pattern match which could potentially fail. In fact, it's not possible for
|
||||
it to, so I have instead made that clear in a way that the type checker
|
||||
can understand.
|
||||
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue