Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 2743895

Browse files
committed
🔥 the Syntax instance for Core.
1 parent 49baa46 commit 2743895

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

semantic-core/src/Data/Core.hs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -199,21 +199,3 @@ stripAnnotations (Var v) = Var v
199199
stripAnnotations (Term t)
200200
| Just c <- prj t, Ann _ b <- c = stripAnnotations b
201201
| otherwise = Term (hmap stripAnnotations t)
202-
203-
204-
instance Syntax Core where
205-
foldSyntax go k h = \case
206-
Let a -> Let a
207-
a :>> b -> go h a :>> go h b
208-
Lam u b -> Lam u (foldSyntax go k h b)
209-
a :$ b -> go h a :$ go h b
210-
Unit -> Unit
211-
Bool b -> Bool b
212-
If c t e -> If (go h c) (go h t) (go h e)
213-
String s -> String s
214-
Load t -> Load (go h t)
215-
Edge e t -> Edge e (go h t)
216-
Frame -> Frame
217-
a :. b -> go h a :. go h b
218-
a := b -> go h a := go h b
219-
Ann loc t -> Ann loc (go h t)

0 commit comments

Comments
 (0)