Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 list

Some examples can be found in the examples directory.