summaryrefslogtreecommitdiff
path: root/src/Language.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-10-26 00:04:14 +0200
committerTom Smeding <tom@tomsmeding.com>2024-10-26 00:04:14 +0200
commitaf51ad3cdce90ac6afe4727c8713426624ebaecd (patch)
treef9cf215d8737c2fda66f94dd46f195a809865433 /src/Language.hs
parent6a0381f9c6cfc56ac805801bf4cefda8305ff055 (diff)
Debugging
Diffstat (limited to 'src/Language.hs')
-rw-r--r--src/Language.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Language.hs b/src/Language.hs
index a025236..3a4a36c 100644
--- a/src/Language.hs
+++ b/src/Language.hs
@@ -126,5 +126,7 @@ not_ = oper ONot
-- | The "_" variables in scope are unusable and should be ignored. With a
-- weakening function on NExprs they could be hidden.
+--
+-- The first alternative is the True case; the second is the False case.
if_ :: NExpr env (TScal TBool) -> NExpr ('("_", TNil) : env) t -> NExpr ('("_", TNil) : env) t -> NExpr env t
if_ e a b = case_ (oper OIf e) (#_ :-> a) (#_ :-> b)