Skip to content

Commit cdaebf8

Browse files
committed
[ fix ] buggy definition of allNats
Using iterate to avoid messing up
1 parent 259748f commit cdaebf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Generic/Semantics/Printing.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ module _ {I : Set} {d : Desc I} where
111111
$′ 'a' ∷ toList "bcdefghijklmnopqrstuvwxyz"
112112

113113
allNats : Stream ℕ _
114-
allNats = Stream.unfold < id , suc > 0
114+
allNats = Stream.iterate suc 0
115115

116116
names : Stream String _
117117
names = Stream.concat

0 commit comments

Comments
 (0)