universe

A class for finite and recursively enumerable types. https://github.com/dmwit/universe

Version on this page:1.1
LTS Haskell 12.26:1.0
Stackage Nightly 2019-05-18:1.1
Latest on Hackage:1.1

See all snapshots universe appears in

BSD-3-Clause licensed by Daniel Wagner
Maintained by me@dmwit.com

Module documentation for 1.1

A class for finite and recursively enumerable types and some helper functions for enumerating them

class Universe a where universe :: [a]
class Universe a => Finite a where universeF :: [a]; universeF = universe

This also provides instances from @universe-instances-*" packages.

Changes

1.1
* Add `cardinality :: Tagged a Natural` to Finite
* Re-arrange packages, ghc boot instances are in `universe-base`
* Rearranged the elements in `universe :: [Rational]` to reduce allocation and increase speed.
* Add `Data.Universe.Generic`
* New package `universe-dependent-sum`

1.0:
* split package into small pieces:
* six packages, all dependencies of a top-level "universe" package
* a base installation requires many fewer dependencies
* moved Data.Universe.Instances to D.U.I.Base for consistency
* modules export the classes that they export instances of
comments powered byDisqus