Skip to content

Commit

Permalink
remove use of tail
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Dec 25, 2024
1 parent 73491cf commit 2414884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Disco/Typecheck/Unify.hs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ unify' baseEq tyDefns eqs = evalStateT (go eqs) S.empty
equate :: TyDefCtx -> [Type] -> Maybe S
equate tyDefns tys = unify tyDefns eqns
where
eqns = zip tys (tail tys)
eqns = zip tys (drop 1 tys)

occurs :: Name Type -> Type -> Bool
occurs x = anyOf fv (== x)
Expand Down

0 comments on commit 2414884

Please sign in to comment.