Skip to content

Commit

Permalink
Comply with HLint
Browse files Browse the repository at this point in the history
  • Loading branch information
SophieBosio committed Jan 15, 2024
1 parent 0bfcce5 commit adbdd9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ strengthenToPattern t = error $
"expected pattern, but was given the non-canonical term " ++ show t

weakenToTerm :: Pattern a -> Term a
weakenToTerm p = (Pattern p)
weakenToTerm = Pattern


-- Pretty printing
Expand Down
2 changes: 1 addition & 1 deletion src/TypeInferrer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ annotate (Not t0 _) =
t0' `hasType` Boolean'
return $ Not t0' Boolean'

annotate' :: (Pattern a) -> Annotation (Term Type)
annotate' :: Pattern a -> Annotation (Term Type)
annotate' (Variable x _) =
do env <- ask
return $ Pattern $ Variable x $ env x
Expand Down

0 comments on commit adbdd9a

Please sign in to comment.