@@ -45,7 +45,7 @@ formatOf f = Record.MkFormat
4545--      End => end.decode
4646--      Fail => fail.decode
4747--      Pure x => (pure x).decode
48- --      Skip  f def => (skip (format' f) def).decode
48+ --      Ignore  f def => (skip (format' f) def).decode
4949--      Repeat len f => (repeat len (format' f)).decode
5050--      Bind f1 f2 => (bind (format' f1) (\x => format' (f2 x))).decode
5151--      OfSing f r => (format' f).decode
@@ -56,7 +56,7 @@ formatOf f = Record.MkFormat
5656--      End => end.encode
5757--      Fail => fail.encode
5858--      Pure x => (pure x).encode
59- --      Skip  f def => (skip (format' f) def).encode
59+ --      Ignore  f def => (skip (format' f) def).encode
6060--      Repeat len f => (repeat len (format' f)).encode
6161--      Bind f1 f2 => (bind (format' f1) (\x => format' (f2 x))).encode
6262--      OfSing f r => (format' f).encode
@@ -68,7 +68,7 @@ indRecToIndexed : (f : IndRec.Format) -> Indexed.FormatOf (Rep f)
6868indRecToIndexed End  =  Indexed . End 
6969indRecToIndexed Fail  =  Indexed . Fail 
7070indRecToIndexed (Pure  x) =  Indexed . Pure  x
71- indRecToIndexed (Skip  f def) =  Indexed . Skip  (indRecToIndexed f) def
71+ indRecToIndexed (Ignore  f def) =  Indexed . Ignore  (indRecToIndexed f) def
7272indRecToIndexed (Repeat  len f) =  Indexed . Repeat  len (indRecToIndexed f)
7373indRecToIndexed (Bind  f g) =  Indexed . Bind  (indRecToIndexed f) (\ x =>  indRecToIndexed (g x))
7474
8080  indexedToIndRecFormat (MkFormat  ()  End ) =  (End  **  Refl )
8181  indexedToIndRecFormat (MkFormat  Void  Fail ) =  (Fail  **  Refl )
8282  indexedToIndRecFormat (MkFormat  (Sing  x) (Pure  x)) =  (Pure  x **  Refl )
83-   indexedToIndRecFormat (MkFormat  ()  (Skip  f def)) with  (indexedToIndRecFormatOf f)
84-     _  |  MkFormatOf  f' =  (Skip  f' def **  Refl )
83+   indexedToIndRecFormat (MkFormat  ()  (Ignore  f def)) with  (indexedToIndRecFormatOf f)
84+     _  |  MkFormatOf  f' =  (Ignore  f' def **  Refl )
8585  indexedToIndRecFormat (MkFormat  (Vect  len _ ) (Repeat  len f)) with  (indexedToIndRecFormatOf f)
8686    _  |  MkFormatOf  f' =  (Repeat  len f' **  Refl )
8787  indexedToIndRecFormat (MkFormat  (x  :  _  ** _ ) (Bind f1 f2)) with (indexedToIndRecFormatOf f1)
9494  indexedToIndRecFormatOf End  =  MkFormatOf  End 
9595  indexedToIndRecFormatOf Fail  =  MkFormatOf  Fail 
9696  indexedToIndRecFormatOf (Pure  x) =  MkFormatOf  (Pure  x)
97-   indexedToIndRecFormatOf (Skip  f def) with  (indexedToIndRecFormatOf f)
98-     _  |  MkFormatOf  f' =  MkFormatOf  (Skip  f' def)
97+   indexedToIndRecFormatOf (Ignore  f def) with  (indexedToIndRecFormatOf f)
98+     _  |  MkFormatOf  f' =  MkFormatOf  (Ignore  f' def)
9999  indexedToIndRecFormatOf (Repeat  len f) with  (indexedToIndRecFormatOf f)
100100    _  |  MkFormatOf  f' =  MkFormatOf  (Repeat  len f')
101101  indexedToIndRecFormatOf (Bind  f1 f2) with  (indexedToIndRecFormatOf f1)
@@ -123,8 +123,8 @@ mutual
123123--  indexedToIndRec End = MkFormatOf IndRec.End
124124--  indexedToIndRec Fail = MkFormatOf IndRec.Fail
125125--  indexedToIndRec (Pure x) = MkFormatOf (IndRec.Pure x)
126- --  indexedToIndRec (Skip  f def) with (indexedToIndRec f)
127- --    indexedToIndRec (Skip  _ def) | MkFormatOf f = MkFormatOf (IndRec.Skip  f def)
126+ --  indexedToIndRec (Ignore  f def) with (indexedToIndRec f)
127+ --    indexedToIndRec (Ignore  _ def) | MkFormatOf f = MkFormatOf (IndRec.Ignore  f def)
128128--  indexedToIndRec (Repeat len f) with (indexedToIndRec f)
129129--    indexedToIndRec (Repeat len _) | MkFormatOf f = MkFormatOf (IndRec.Repeat len f)
130130--  indexedToIndRec (Bind f1 f2) with (indexedToIndRec f1)
@@ -135,7 +135,7 @@ mutual
135135  --  _ | (MkFormatOf End) = MkFormatOf (Bind End ?todo_indexedToIndRec_2)
136136  --  _ | (MkFormatOf Fail) = MkFormatOf (Bind Fail absurd)
137137  --  _ | (MkFormatOf (Pure f)) = MkFormatOf (Bind ?todo_indexedToIndRec_4)
138-   --  _ | (MkFormatOf (Skip  f def)) = MkFormatOf (Bind ?todo_indexedToIndRec_5)
138+   --  _ | (MkFormatOf (Ignore  f def)) = MkFormatOf (Bind ?todo_indexedToIndRec_5)
139139  --  _ | (MkFormatOf (Repeat k x)) = MkFormatOf (Bind ?todo_indexedToIndRec_6)
140140  --  _ | (MkFormatOf (Bind f g)) = MkFormatOf (Bind ?todo_indexedToIndRec_7)
141141
@@ -164,7 +164,7 @@ mutual
164164--    _ | (End ** prf) = let bindF1 = Bind f1 in ?todo_indexedToIndRec_2
165165--    _ | (Fail ** prf) = let bindF1 = Bind f1 in ?todo_indexedToIndRec_3
166166--    _ | ((Pure f) ** prf) = let bindF1 = Bind f1 in ?todo_indexedToIndRec_4
167- --    _ | ((Skip  f def) ** prf) = let bindF1 = Bind f1 in ?todo_indexedToIndRec_5
167+ --    _ | ((Ignore  f def) ** prf) = let bindF1 = Bind f1 in ?todo_indexedToIndRec_5
168168--    _ | ((Repeat k x) ** prf) = let bindF1 = Bind f1 in ?todo_indexedToIndRec_6
169169--    _ | ((Bind f g) ** prf) = let bindF1 = Bind f1 in ?todo_indexedToIndRec_7
170170
@@ -205,8 +205,8 @@ mutual
205205--  indexedToIndRec' End = IndRec.End
206206--  indexedToIndRec' Fail = IndRec.Fail
207207--  indexedToIndRec' (Pure x) = IndRec.Pure x
208- --  indexedToIndRec' (Skip  f def) with (MkFormatOf (indexedToIndRec' f))
209- --    _ | f' = IndRec.Skip  (indexedToIndRec' f) ?todo1
208+ --  indexedToIndRec' (Ignore  f def) with (MkFormatOf (indexedToIndRec' f))
209+ --    _ | f' = IndRec.Ignore  (indexedToIndRec' f) ?todo1
210210--  indexedToIndRec' (Repeat len f) = IndRec.Repeat len (indexedToIndRec' f)
211211--  indexedToIndRec' (Bind f1 f2) = IndRec.Bind (indexedToIndRec' f1) ?todo2
212212
@@ -215,8 +215,8 @@ mutual
215215--  indexedToIndRec'' (MkFormat () End) = IndRec.End
216216--  indexedToIndRec'' (MkFormat Void Fail) = IndRec.Fail
217217--  indexedToIndRec'' (MkFormat (Sing x) (Pure x)) = IndRec.Pure x
218- --  indexedToIndRec'' (MkFormat () (Skip  f def)) with (indexedToIndRec'' (MkFormat _ f))
219- --    _ | f'' = IndRec.Skip  f'' ?tododef
218+ --  indexedToIndRec'' (MkFormat () (Ignore  f def)) with (indexedToIndRec'' (MkFormat _ f))
219+ --    _ | f'' = IndRec.Ignore  f'' ?tododef
220220--  indexedToIndRec'' (MkFormat rep (Repeat len f)) = IndRec.Repeat len (indexedToIndRec'' f)
221221--  indexedToIndRec'' (MkFormat rep (Bind f1 f2)) = IndRec.Bind (indexedToIndRec'' f1) ?todo2
222222
0 commit comments