Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sjoerdvisscher/unfoldable
Class of data structures that can be unfolded.
https://github.com/sjoerdvisscher/unfoldable
generics haskell
Last synced: 23 days 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 12 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T11:23:14.000Z (about 1 year ago)
- Last Synced: 2024-04-26T01:01:47.562Z (7 months 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
==========[![Hackage](https://img.shields.io/hackage/v/unfoldable.svg)](https://hackage.haskell.org/package/unfoldable) [![Build Status](https://github.com/sjoerdvisscher/unfoldable/workflows/Haskell-CI/badge.svg)](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.