Document and fix code style

This commit is contained in:
Martin Fredin 2023-02-18 13:41:38 +01:00
parent b8aedd541d
commit 3efb27ac0c
3 changed files with 53 additions and 53 deletions

View file

@ -41,8 +41,8 @@ checkBind cxt b =
(rhs', t_rhs) <- infer cxt rhs
unless (typeEq t_rhs t) . throwError $ typeErr name t t_rhs
pure $ T.Bind (name, t) (zip parms ts_parms) rhs'
where
ts_parms = fst $ partitionType (length parms) t
where
ts_parms = fst $ partitionType (length parms) t
-- | @ f x y = rhs ⇒ f = \x.\y. rhs @
expandLambdas :: Bind -> Bind