Gabriella439 / foldl

Composable, streaming, and efficient left folds
BSD 3-Clause "New" or "Revised" License
159 stars 51 forks source link

Cosieve and Costrong instances #198

Closed Skyb0rg007 closed 1 year ago

Skyb0rg007 commented 1 year ago

This is a PR which adds the instances, as mentioned in #197.

I decided not to add the Corepresentable instance, since it does rely on cosieve . cotabulate not being passed an infinite list. Thus the Costrong instance simply inlines unfirstCorep as stated previously.

I also bumped the lts version to lts-18.0, since that is the earliest version which satisfies the random >= 1.2.0 constraint (which also happens to satisfy the profunctors constraint).