unfoldable

Class of data structures that can be unfolded.

https://github.com/sjoerdvisscher/unfoldable

Version on this page:0.9.2@rev:1
LTS Haskell 12.26:0.9.6@rev:2
Stackage Nightly 2018-07-09:0.9.6
Latest on Hackage:1.0.1@rev:1

See all snapshots unfoldable appears in

BSD-3-Clause licensed by Sjoerd Visscher
Maintained by [email protected]
This version can be pinned in stack with:unfoldable-0.9.2@sha256:21e9b1499fe1d0232359616b81cb8cb4b7e4efdbca5550d5643118edb45be94d,1831

Module documentation for 0.9.2

  • Data
    • Data.Biunfoldable
    • Data.Unfoldable
    • Data.Unfolder

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.

Changes

0.9.1

  • added Nth unfolder
  • added brackets example

0.9

  • added chooseMap method
  • added instances from containers
  • improved ListT instance

0.8.4

  • updated to QuickCheck 2.9

0.8.3

  • updated to transformers 0.5

0.8.2

  • updated to QuickCheck 2.8

0.8.1

  • added changelog
  • updated to transformers 0.4.1.0
  • added Data.Functor.Sum instance for Unfoldable

0.8

  • new implementation of arbitraryDefault