Skip to content

Commit

Permalink
fix: Add missing unelab cases
Browse files Browse the repository at this point in the history
  • Loading branch information
croyzor committed Dec 6, 2024
1 parent 787baed commit ca5df29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brat/Brat/Unelaborator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ unelab _ _ (Con c args) = FCon c (unelab Chky Nouny <$> args)
unelab _ _ (C (ss :-> ts)) = FFn (toRawRo ss :-> toRawRo ts)
unelab _ _ (K cty) = FKernel $ fmap (\(p, ty) -> Named p (toRaw ty)) cty
unelab _ _ Identity = FIdentity
unelab _ _ Hope = FHope
unelab _ _ FanIn = FFanIn
unelab _ _ FanOut = FFanOut

Expand Down Expand Up @@ -67,6 +68,7 @@ toRaw (Con c args) = RCon c (toRaw <$> args)
toRaw (C (ss :-> ts)) = RFn (toRawRo ss :-> toRawRo ts)
toRaw (K cty) = RKernel $ (\(p, ty) -> Named p (toRaw ty)) <$> cty
toRaw Identity = RIdentity
toRaw Hope = RHope
toRaw FanIn = RFanIn
toRaw FanOut = RFanOut

Expand Down

0 comments on commit ca5df29

Please sign in to comment.