Copyright | (c) Andrey Mulik 2019 |
---|---|
License | BSD-style |
Maintainer | work.a.mulik@gmail.com |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
SDP.Estimate provides Estimate
class, type synonyms and some common
comparators. This module is exported by SDP.SafePrelude.
Synopsis
- module Data.Functor.Classes
- class Estimate e where
- (<=.>) :: Estimate e => Int -> e -> Ordering
- (<.) :: Estimate e => Int -> e -> Bool
- (>.) :: Estimate e => Int -> e -> Bool
- (<=.) :: Estimate e => Int -> e -> Bool
- (>=.) :: Estimate e => Int -> e -> Bool
- (==.) :: Estimate e => Int -> e -> Bool
- (/=.) :: Estimate e => Int -> e -> Bool
Exports
module Data.Functor.Classes
Estimate
class Estimate e where Source #
Estimate
class provides the lazy comparsion structures by length.
For some types (e.g., lists), this allows you to speed up the comparison or make it finite. For others (e.g., arrays), it may be convenient abbreviation.
(<.=>) :: e -> Int -> Ordering infixl 4 Source #
Left-side structure length with number comparison.
(<==>) :: Compare e infixl 4 Source #
Two structures by length comparison.
(.==) :: e -> Int -> Bool infixl 4 Source #
Left-side structure length with number comparison.
(./=) :: e -> Int -> Bool infixl 4 Source #
Left-side structure length with number comparison.
(.<=) :: e -> Int -> Bool infixl 4 Source #
Left-side structure length with number comparison.
(.>=) :: e -> Int -> Bool infixl 4 Source #
Left-side structure length with number comparison.
(.<) :: e -> Int -> Bool infixl 4 Source #
Left-side structure length with number comparison.
(.>) :: e -> Int -> Bool infixl 4 Source #
Left-side structure length with number comparison.
(.<.) :: e -> e -> Bool infixl 4 Source #
Two structures comparison by length.
(.>.) :: e -> e -> Bool infixl 4 Source #
Two structures comparison by length.
(.<=.) :: e -> e -> Bool infixl 4 Source #
Two structures comparison by length.
(.>=.) :: e -> e -> Bool infixl 4 Source #
Two structures comparison by length.
(.==.) :: e -> e -> Bool infixl 4 Source #
Two structures comparison by length.
(./=.) :: e -> e -> Bool infixl 4 Source #
Two structures comparison by length.
Instances
(<=.>) :: Estimate e => Int -> e -> Ordering infixl 4 Source #
Right-side number with structure length comparison.
(<.) :: Estimate e => Int -> e -> Bool infixl 4 Source #
Right-side number with structure length comparison.
(>.) :: Estimate e => Int -> e -> Bool infixl 4 Source #
Right-side number with structure length comparison.
(<=.) :: Estimate e => Int -> e -> Bool infixl 4 Source #
Right-side number with structure length comparison.
(>=.) :: Estimate e => Int -> e -> Bool infixl 4 Source #
Right-side number with structure length comparison.