Skip to content

Commit 305a0ce

Browse files
committed
Various cleanups
1 parent e0c52d7 commit 305a0ce

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

experiments/idris/src/Fathom/Closed/IndexedInductive.idr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ encode (Bind f1 f2) (x ** y) =
8282
-----------------
8383
8484
85+
public export
8586
record Format where
8687
constructor MkFormat
8788
0 Repr : Type

experiments/idris/src/Fathom/Closed/InductiveRecursive.idr

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,6 @@ decode (Bind f1 f2) buffer = do
114114
(y, buffer'') <- decode (f2 x) buffer'
115115
Just ((x ** y), buffer'')
116116
117-
-- Questionable format descriptions
118-
-- decode (OrPure True f _) buffer = decode f buffer
119-
-- decode (OrPure False _ def) buffer = Just (def, buffer)
120-
-- decode (OfSing f (MkSing r {prf})) buffer = do
121-
-- (x, buffer') <- decode f buffer
122-
-- Just (rewrite sym prf in x, buffer')
123-
-- decode (OfEq f _ {prf}) buffer = do
124-
-- (x, buffer') <- decode f buffer
125-
-- Just (rewrite sym prf in x, buffer')
126-
127-
-- Broken stuff
128-
129117
130118
export
131119
encode : (f : Format) -> Encode (Rep f) (Colist a)
@@ -137,14 +125,6 @@ encode (Repeat (S len) f) (x :: xs) = do
137125
[| encode f x <+> encode (Repeat len f) xs |]
138126
encode (Bind f1 f2) (x ** y) = do
139127
[| encode f1 x <+> encode (f2 x) y |]
140-
-- Questionable format descriptions
141-
-- encode (OrPure True f _) x = encode f x
142-
-- encode (OrPure False _ def) x = Just []
143-
-- encode (OfSing f r) x = do
144-
-- buffer' <- encode f ?todo_x
145-
-- ?todo_encode
146-
-- encode (OfEq f _ {prf}) x = do
147-
-- encode f (rewrite prf in x)
148128
149129
150130
-----------------

experiments/idris/src/Playground.idr

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,4 @@ indexedToIndRec (Repeat len f) with (indexedToIndRec f)
8484
indexedToIndRec (Repeat len _) | MkFormatOf f = MkFormatOf (IndRec.Repeat len f)
8585
indexedToIndRec (Bind f1 f2) with (indexedToIndRec f1)
8686
indexedToIndRec (Bind _ f2) | MkFormatOf f1 =
87-
-- f1 : Format
88-
-- 0 A : Type
89-
-- f2 : (x : Rep f1) -> FormatOf (B x)
90-
-- ------------------------------
91-
-- todo_indexedToIndRec : FormatOf (DPair (Rep f1) (\x => B x))
9287
?todo_indexedToIndRec

0 commit comments

Comments
 (0)