@@ -526,6 +526,8 @@ isLikeNat ist cn
526 = if | cn == z -> Just LikeZ
526 = if | cn == z -> Just LikeZ
527 | cn == s -> Just LikeS
527 | cn == s -> Just LikeS
528 | otherwise -> error $ "isLikeNat: constructor not found in its own family: " ++ show (cn, tyN)
528 | otherwise -> error $ "isLikeNat: constructor not found in its own family: " ++ show (cn, tyN)
530+ | otherwise = Nothing
530 natLikeCtors :: Name -> Type -> Maybe (Name, Name)
532 natLikeCtors :: Name -> Type -> Maybe (Name, Name)
531 natLikeCtors tyN cTy = case lookupCtxtExact tyN $ idris_datatypes ist of
533 natLikeCtors tyN cTy = case lookupCtxtExact tyN $ idris_datatypes ist of