https://github.com/sjoerdvisscher/unfoldable
Class of data structures that can be unfolded.
https://github.com/sjoerdvisscher/unfoldable
generics haskell
Last synced: 3 months ago
JSON representation
Class of data structures that can be unfolded.
- Host: GitHub
- URL: https://github.com/sjoerdvisscher/unfoldable
- Owner: sjoerdvisscher
- License: bsd-3-clause
- Created: 2012-03-31T18:09:18.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T11:23:14.000Z (almost 2 years ago)
- Last Synced: 2024-04-26T01:01:47.562Z (about 1 year ago)
- Topics: generics, haskell
- Language: Haskell
- Homepage: http://hackage.haskell.org/package/unfoldable
- Size: 74.2 KB
- Stars: 13
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Unfoldable
==========[](https://hackage.haskell.org/package/unfoldable) [](https://github.com/sjoerdvisscher/unfoldable/actions?query=workflow%3AHaskell-CI)
Class of data structures that can be unfolded.
Just as there's a Foldable class, there should also be an Unfoldable class.
This package provides one. Example unfolds are:* Random values
* Enumeration of all values (depth-first or breadth-first)
* Convert from a listSome examples can be found in the examples directory.