Skip to content

Commit

Permalink
fix translation of pi
Browse files Browse the repository at this point in the history
  • Loading branch information
flupe committed Jan 17, 2024
1 parent e4dfeb5 commit b4d42a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/Agda/Core/ToCore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,11 @@ instance ToCore I.Term where

toCore I.Con{} = throwError "cubical endpoint application to constructors not supported"

toCore (I.Pi dom codom) = TPi <$> toCore dom <*> toCore codom
-- NOTE(flupe): we will need the sorts in the core syntax soon
-- <$> toCore (dom .^ lensSort)
-- <*> toCore (codom .^ lensSort)
toCore (I.Pi dom codom) =
TPi <$> toCore (dom ^. lensSort)
<*> toCore (absBody codom ^. lensSort)
<*> toCore dom
<*> toCore codom

toCore (I.Sort s) = TSort <$> toCore s

Expand Down

0 comments on commit b4d42a9

Please sign in to comment.