"Codata are types populated by values โโthat can be infinite."
This contrasts with the โdataโ, which are populated only by finite values. For example, if we take the definition of โdataโ of lists, it is populated with lists of finite length (as in ML), but if we take the definition of โcodataโ, it will be populated as infinite (as in Haskell, for example x = 1 : x ).
Komonads and codates are not necessarily related (although perhaps some may think of this because of the article by Kiburz Comonads and codata in Haskell ).
source share