File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ expToDoc (Var nm) = jsIdent nm
260
260
expToDoc (JLam nms (JReturn exp)) = text "(" <+> commaSep (map jsIdent nms) <+> text ") =>" <+> text "(" ++ expToDoc exp ++ text ")"
261
261
expToDoc (JLam nms body) = text "(" <+> commaSep (map jsIdent nms) <+> text ") =>" <+> bracket "{" (stmtToDoc body) "}"
262
262
expToDoc JUndefined = text "null"
263
- expToDoc (Index obj ix) = expToDoc obj ++ text "( " ++ expToDoc ix ++ text " :: Nil) "
263
+ expToDoc (Index obj ix) = expToDoc obj ++ text "[ " ++ expToDoc ix ++ text "] "
264
264
expToDoc (Dot obj nm) = expToDoc obj ++ text "." ++ jsIdent nm
265
265
expToDoc (JPrimOp op t u) = parens 0 1 (expToDoc t) <+> text op <+> parens 0 1 (expToDoc u)
266
266
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ lookupRaw raw top =
37
37
38
38
39
39
instance Show TopContext where
40
- show (MkTop _ _ _ _ defs metas _ _ _) = "\nContext:\n ( \{ joinBy "\n" $ map (show ∘ snd) $ toList defs} :: Nil) "
40
+ show (MkTop _ _ _ _ defs metas _ _ _) = "\nContext:\n [ \{ joinBy "\n" $ map (show ∘ snd) $ toList defs}] "
41
41
42
42
-- TODO need to get class dependencies working
43
43
emptyTop : ∀ io. {{Monad io}} {{HasIO io}} -> io TopContext
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ data Binder : U where
23
23
-- I don't have a show for terms without a name list
24
24
25
25
instance Show Binder where
26
- show (MkBinder _ nm icit quant t) = "( \{show quant}\{nm} \{show icit} : ... :: Nil) "
26
+ show (MkBinder _ nm icit quant t) = "[ \{show quant}\{nm} \{show icit} : ...] "
27
27
28
28
splitTele : Tm -> (Tm × List Binder)
29
29
splitTele = go Nil
You can’t perform that action at this time.
0 commit comments