Deprecated

In favour of

universe-dependent-sum

Universe instances for types from dependent-sum

https://github.com/dmwit/universe

Version on this page:1.3
LTS Haskell 19.18:1.3@rev:1
Stackage Nightly 2022-08-04:1.3@rev:1
Latest on Hackage:1.3@rev:1

See all snapshots universe-dependent-sum appears in

BSD-3-Clause licensed by Daniel Wagner
Maintained by me@dmwit.com
This version can be pinned in stack with:universe-dependent-sum-1.3@sha256:bb87b4a3c1d6ef0d51e7b4977f0c8ec165ee7e1ac15173a2ad7b9d6276c76c10,1513

Module documentation for 1.3

A class for finite and recursively enumerable types and some helper functions for enumerating them defined in universe-base package:

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

This package adds

class UniverseSome f where universeSome :: [Some f]
class UniverseSome f => FiniteSome f where universeFSome :: [Some f]; universeFSome = universe

classes.