packages feed

idris-0.9.10: test/reg018/reg018b.idr

module A

%default total

codata B = Z B | I B

showB : B -> String
showB (I x) = "I" ++ showB x
showB (Z x) = "Z" ++ showB x

instance Show B where show = showB

os : B
os = Z os