MonadFail for SoloClass
This commit is contained in:
parent
41972e28c5
commit
d152e2196d
@ -115,3 +115,13 @@ impl LocalFunctor for SoloClass {
|
||||
fa
|
||||
}
|
||||
}
|
||||
|
||||
impl MonadFail<std::convert::Infallible> for SoloClass {
|
||||
fn fail<'a, A: 'a>(e: std::convert::Infallible) -> Self::F<'a, A>
|
||||
where
|
||||
Self: 'a,
|
||||
std::convert::Infallible: 'a,
|
||||
{
|
||||
match e {}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user