Changes
Page history
Update handling source locations
authored
Jan 28, 2020
by
Simon Peyton Jones
Show whitespace changes
Inline
Side-by-side
implementing-trees-that-grow/handling-source-locations.md
View page @
223eef4b
...
...
@@ -21,10 +21,10 @@ data Expr p = Var (XVar p) (Var p)
| Lam (XLam p) (Var p) (Expr p)
| XExpr (XXExpr p)
ty
e
p family XVar p
ty
e
p family XApp p
ty
e
p family XLam p
ty
e
p family XXExpr p
typ
e
family XVar p
typ
e
family XApp p
typ
e
family XLam p
typ
e
family XXExpr p
```
Here the type index is
`p`
; the extension constructor is
`XExpr`
; and
the extension fields are
`XVar p`
,
`XApp p`
, etc (i.e. the first field
...
...
...
...