universe-reverse-instances

Instances of standard classes that are made possible by enumerations

https://github.com/dmwit/universe

Version on this page:1.1.1@rev:3
LTS Haskell 22.18:1.1.1@rev:4
Stackage Nightly 2024-04-25:1.1.1@rev:4
Latest on Hackage:1.1.1@rev:4

See all snapshots universe-reverse-instances appears in

BSD-3-Clause licensed by Daniel Wagner
Maintained by [email protected]
This version can be pinned in stack with:universe-reverse-instances-1.1.1@sha256:43e8d52c187b7166bdd6c7b241cc6781348c4ec7e30c6729bc8b6e7956c87eea,1700
Used by 2 packages in nightly-2023-06-04(full list with versions):

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]