Skip to content

Commit

Permalink
Some tidy up from review feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Humphreys <alex.humphreys@here.com>
  • Loading branch information
Alex Humphreys committed Nov 10, 2020
1 parent 579f06b commit d59c2f0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Idrall/Check.idr
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ mkEnv ((x, e) :: ctx) =
(IsA t) => let v = VNeutral t (NVar x) in
(x, v) :: env)

-- TODO check is there some FP magic for this
mapUnion : (a -> Either e b) -> (k, Maybe a) -> Either e (k, (Maybe b))
mapUnion f (k, Just x) =
Right (k, Just !(f x))
Expand Down Expand Up @@ -419,7 +418,7 @@ mutual
let i' = freshen (ctxNames ctx) i in
do a <- readBackTyped ctx (VConst CType) ty
body' <- readBackTyped ctx (VConst CType) (f (VNeutral ty (NVar i')))
-- TODO not remotely sure about this ^^^, especially the CType
-- CType is _probably_ fine here ^^^^^
Right (EPi i' a body')
readBackTyped ctx (VPi aT bT) (VHLam i f) =
let x = freshen (ctxNames ctx) (closureName bT) in do
Expand Down Expand Up @@ -503,8 +502,6 @@ isEquivalent : Ctx -> Value -> Either Error (Value, Value)
isEquivalent ctx (VEquivalent x y) = Right (x, y)
isEquivalent ctx other = unexpected ctx "Not Equivalent" other

isTermLit : Ctx -> Value -> Either Error ()

isTerm : Ctx -> Value -> Either Error ()
isTerm _ (VPi _ _) = Right ()
isTerm _ (VBool) = Right ()
Expand Down

0 comments on commit d59c2f0

Please sign in to comment.