Skip to content

Commit

Permalink
Clean up before merge
Browse files Browse the repository at this point in the history
  • Loading branch information
SophieBosio committed Apr 9, 2024
1 parent b7e2c7a commit 3378632
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions examples/simple/variousTerms.con
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ and True True = True .
and True False = False .
and False True = False .
and False False = False .
and x y = False .

or False False = False .
or x y = True .
Expand All @@ -60,7 +59,6 @@ caseOfADT x = case x of
; (D {w, z}) -> and w z
; u -> True .


numIntoADT :: Integer -> Example .
numIntoADT x = C {x} .

Expand Down
2 changes: 1 addition & 1 deletion src/Semantics/PartialEvaluator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function :: Show a => Term a -> PartialState (Term a -> Term a)
function (Lambda p t _) =
do notAtTopLevel p
return $ substitute p t
function t = error $ "expected a function, but got " ++ show t
function t = error $ "Expected a function, but got the term '" ++ show t ++ "'"

notAtTopLevel :: Pattern a -> PartialState ()
notAtTopLevel (Variable x _) =
Expand Down

0 comments on commit 3378632

Please sign in to comment.