Deprecated

In favour of

universe-dependent-sum

Universe instances for types from dependent-sum

https://github.com/dmwit/universe

Version on this page:1.1.0.1@rev:1
LTS Haskell 22.17:1.3@rev:4
Stackage Nightly 2024-04-14:1.3@rev:4
Latest on Hackage:1.3@rev:4

See all snapshots universe-dependent-sum appears in

BSD-3-Clause licensed by Daniel Wagner
Maintained by [email protected]
This version can be pinned in stack with:universe-dependent-sum-1.1.0.1@sha256:41a02014b9e3dcdfdd84879b30397d9f8b26b9fd5ae27ae1beff941753486b57,2036

Module documentation for 1.1.0.1

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.