universe-reverse-instances

Instances of standard classes that are made possible by enumerations

https://github.com/dmwit/universe

Version on this page:1.1.2
LTS Haskell 23.4:1.1.2@rev:1
Stackage Nightly 2025-01-15:1.1.2@rev:1
Latest on Hackage:1.1.2@rev:1

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.2@sha256:b1402f685cc9bfda606d0eaced869440c6c03173b2319d3afae3c2cd1898a2cc,1525
Used by 2 packages in nightly-2024-08-13(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]