Skip to content

Commit 5651b80

Browse files
committed
revert refactor as it fails
1 parent 3ad8f58 commit 5651b80

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

dhall/src/Dhall/TypeCheck.hs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,25 +1314,6 @@ infer typer = loop
13141314

13151315
VOptional _O' -> do
13161316
case ks of
1317-
-- The old rule was:
1318-
--
1319-
-- Γ ⊢ e : Optional T
1320-
-- Γ ⊢ v : T'
1321-
-- T === T'
1322-
-- ──────────────────────────────────
1323-
-- Γ ⊢ e with ?.ks… = v : Optional T
1324-
--
1325-
-- Here T is _O' and T' = tV'.
1326-
--
1327-
-- The new rule is:
1328-
--
1329-
-- Γ ⊢ e : Optional T
1330-
-- Γ, x : T ⊢ x with ks… = v : T₁
1331-
-- T ≡ T₁
1332-
-- ────────────────────────────────── x ∉ FV(v)
1333-
-- Γ ⊢ e with ?.ks… = v : Optional T
1334-
--
1335-
-- Here T is _O' and T₁ is tV'.
13361317

13371318
-- (Some x) with ? = v is valid iff the type of x is the same as the type of v.
13381319
WithQuestion :| [] -> do

0 commit comments

Comments
 (0)