universe-reverse-instances

Instances of standard classes that are made possible by enumerations

https://github.com/dmwit/universe

Version on this page:1.1
LTS Haskell 22.14:1.1.1@rev:4
Stackage Nightly 2024-03-29: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@sha256:7730bb0af145691257fb93478caec1f73e6b149d189b253e5fe61f21db93433e,1266

Module documentation for 1.1

  • Data
    • Data.Universe
      • Data.Universe.Instances
        • Data.Universe.Instances.Eq
        • Data.Universe.Instances.Ord
        • Data.Universe.Instances.Read
        • Data.Universe.Instances.Show
        • Data.Universe.Instances.Traversable
Used by 2 packages in nightly-2019-06-06(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]