speculate-0.4.18: discovery of properties about Haskell functions
Copyright(c) 2019-2024 Rudy Matela
License3-Clause BSD (see the file LICENSE)
MaintainerRudy Matela <rudy@matela.com.br>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Speculate.Function.A100

Description

This module is part of Speculate.

This module exports a Listable instance for functions along with two toy Eq and Ord instances for functions based on 100 sample return values.

Orphan instances

(Listable a, Eq b) => Eq (a -> b) Source # 
Instance details

Methods

(==) :: (a -> b) -> (a -> b) -> Bool #

(/=) :: (a -> b) -> (a -> b) -> Bool #

(Listable a, Ord b) => Ord (a -> b) Source # 
Instance details

Methods

compare :: (a -> b) -> (a -> b) -> Ordering #

(<) :: (a -> b) -> (a -> b) -> Bool #

(<=) :: (a -> b) -> (a -> b) -> Bool #

(>) :: (a -> b) -> (a -> b) -> Bool #

(>=) :: (a -> b) -> (a -> b) -> Bool #

max :: (a -> b) -> (a -> b) -> a -> b #

min :: (a -> b) -> (a -> b) -> a -> b #