Instances of standard classes that are made possible by enumerations https://github.com/dmwit/universe

Version on this page:1.1@rev:1
LTS Haskell 14.6:1.1@rev:2
Stackage Nightly 2019-09-20:1.1@rev:2
Latest on Hackage:1.1@rev:2

See all snapshots universe-reverse-instances appears in

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

Module documentation for 1.1

This version can be pinned in stack with:universe-reverse-instances-1.1@sha256:3383f11ddccfbe7255460f1d57999794503e1d7a717b5f3315aa2c207ac30ced,1283

For example this package provides a Eq (a -> b) instance:

instance (Finite a, Eq b) => Eq (a -> b) where
f == g = and [f x == g x | x <- universeF]
Used by 2 packages in lts-14.5(full list with versions):
comments powered byDisqus