Skip to content

Commit

Permalink
🐛 fix macOS build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lsrcz committed Feb 27, 2023
1 parent 5a1cae8 commit a1bffac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Grisette/Core/Data/Class/SafeArith.hs
Expand Up @@ -395,15 +395,15 @@ instance SafeLinearArith (Either BitwidthMismatch ArithException) type where \
safeAdd' t (type (l :: ctype l)) (type (r :: ctype r)) = merge (\
case sameNat (Proxy @l) (Proxy @r) of \
Just Refl -> type <$> safeAdd' (t . Right) l r; \
_ -> throwError $ t $ Left BitwidthMismatch); \
_ -> let t' = t; t''' = t in throwError $ t' $ Left BitwidthMismatch); \
safeMinus (type (l :: ctype l)) (type (r :: ctype r)) = merge (\
case sameNat (Proxy @l) (Proxy @r) of \
Just Refl -> type <$> safeMinus' Right l r; \
_ -> throwError $ Left BitwidthMismatch); \
safeMinus' t (type (l :: ctype l)) (type (r :: ctype r)) = merge (\
case sameNat (Proxy @l) (Proxy @r) of \
Just Refl -> type <$> safeMinus' (t . Right) l r; \
_ -> throwError $ t $ Left BitwidthMismatch); \
_ -> let t' = t; t''' = t in throwError $ t' $ Left BitwidthMismatch); \
safeNeg (type l) = merge $ type <$> safeNeg' Right l; \
safeNeg' t (type l) = merge $ type <$> safeNeg' (t . Right) l

Expand Down

0 comments on commit a1bffac

Please sign in to comment.