From fd658831ab53f07969524fee0257d086d6f79f5a Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Wed, 12 Jul 2023 14:02:42 +0100 Subject: Prove unification correct. --- src/Data/Maybe/Properties.idr | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Data/Maybe') diff --git a/src/Data/Maybe/Properties.idr b/src/Data/Maybe/Properties.idr index 459cb8f..c9fea96 100644 --- a/src/Data/Maybe/Properties.idr +++ b/src/Data/Maybe/Properties.idr @@ -85,3 +85,8 @@ appNothingInverse : Either (IsNothing f) (IsNothing x) appNothingInverse Nothing x prf = Left ItIsNothing appNothingInverse (Just f) Nothing prf = Right ItIsNothing + +%inline +export +bindNothing : {x : Maybe a} -> (0 ok : IsNothing x) -> (f : a -> Maybe b) -> IsNothing (x >>= f) +bindNothing ItIsNothing f = ItIsNothing -- cgit v1.2.3