We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49a343b commit c4c54ebCopy full SHA for c4c54eb
1 file changed
src/Generic/Semantics/Printing.agda
@@ -111,9 +111,7 @@ module _ {I : Set} {d : Desc I} where
111
$′ 'a' ∷ toList "bcdefghijklmnopqrstuvwxyz"
112
113
allNats : Stream ℕ _
114
- allNats = cofix (λ i → ℕ → Stream ℕ i) step 0 where
115
- step : ∀ {i} → Thunk _ i → ℕ → Stream ℕ i
116
- step rec k = k ∷ λ where .force → rec .force (suc k)
+ allNats = Stream.unfold < id , suc > 0
117
118
names : Stream String _
119
names = Stream.concat
0 commit comments