connections-0.1.0: Partial orders, Galois connections, and lattices.

Safe HaskellSafe
LanguageHaskell2010

Data.Prd.Nan

Synopsis

Documentation

data Nan a Source #

A type with an additional incomparable element allowing for the possibility of undefined values.

Constructors

Nan 
Def a 
Instances
Functor Nan Source # 
Instance details

Defined in Data.Prd.Nan

Methods

fmap :: (a -> b) -> Nan a -> Nan b #

(<$) :: a -> Nan b -> Nan a #

Applicative Nan Source # 
Instance details

Defined in Data.Prd.Nan

Methods

pure :: a -> Nan a #

(<*>) :: Nan (a -> b) -> Nan a -> Nan b #

liftA2 :: (a -> b -> c) -> Nan a -> Nan b -> Nan c #

(*>) :: Nan a -> Nan b -> Nan b #

(<*) :: Nan a -> Nan b -> Nan a #

Triple Double (Extended Int8) Source # 
Instance details

Defined in Data.Connection

Triple Double (Extended Int16) Source # 
Instance details

Defined in Data.Connection

Triple Double (Extended Int32) Source # 
Instance details

Defined in Data.Connection

Triple Float (Extended Int8) Source # 
Instance details

Defined in Data.Connection

Triple Float (Extended Int16) Source # 
Instance details

Defined in Data.Connection

Triple Rational (Nan Ordering) Source # 
Instance details

Defined in Data.Connection

Triple Rational (Extended Int8) Source # 
Instance details

Defined in Data.Connection

Triple Rational (Extended Int16) Source # 
Instance details

Defined in Data.Connection

Triple Rational (Extended Int32) Source # 
Instance details

Defined in Data.Connection

Triple Rational (Extended Int64) Source # 
Instance details

Defined in Data.Connection

Triple Rational (Extended Integer) Source # 
Instance details

Defined in Data.Connection

Triple Positive (Lifted Natural) Source # 
Instance details

Defined in Data.Connection

Triple Positive (Lifted Word8) Source # 
Instance details

Defined in Data.Connection

Triple Positive (Lifted Word16) Source # 
Instance details

Defined in Data.Connection

Triple Positive (Lifted Word32) Source # 
Instance details

Defined in Data.Connection

Triple Positive (Lifted Word64) Source # 
Instance details

Defined in Data.Connection

Connection Double (Nan Int) Source # 
Instance details

Defined in Data.Connection

Connection Double (Nan Int64) Source # 
Instance details

Defined in Data.Connection

Connection Float (Nan Int32) Source # 
Instance details

Defined in Data.Connection

Show a => Show (Nan a) Source # 
Instance details

Defined in Data.Prd.Nan

Methods

showsPrec :: Int -> Nan a -> ShowS #

show :: Nan a -> String #

showList :: [Nan a] -> ShowS #

Generic (Nan a) Source # 
Instance details

Defined in Data.Prd.Nan

Associated Types

type Rep (Nan a) :: Type -> Type #

Methods

from :: Nan a -> Rep (Nan a) x #

to :: Rep (Nan a) x -> Nan a #

Prd a => Prd (Nan a) Source # 
Instance details

Defined in Data.Prd.Nan

Methods

(<=) :: Nan a -> Nan a -> Bool Source #

(>=) :: Nan a -> Nan a -> Bool Source #

(<) :: Nan a -> Nan a -> Bool Source #

(>) :: Nan a -> Nan a -> Bool Source #

(?~) :: Nan a -> Nan a -> Bool Source #

(=~) :: Nan a -> Nan a -> Bool Source #

(/~) :: Nan a -> Nan a -> Bool Source #

(~~) :: Nan a -> Nan a -> Bool Source #

(!~) :: Nan a -> Nan a -> Bool Source #

pcompare :: Nan a -> Nan a -> Maybe Ordering Source #

Generic1 Nan Source # 
Instance details

Defined in Data.Prd.Nan

Associated Types

type Rep1 Nan :: k -> Type #

Methods

from1 :: Nan a -> Rep1 Nan a #

to1 :: Rep1 Nan a -> Nan a #

Connection (Nan Int) Double Source # 
Instance details

Defined in Data.Connection

Connection (Nan Int32) Float Source # 
Instance details

Defined in Data.Connection

Connection (Nan Int64) Double Source # 
Instance details

Defined in Data.Connection

Connection a b => Connection (Nan a) (Nan b) Source # 
Instance details

Defined in Data.Connection

Methods

connection :: Conn (Nan a) (Nan b) Source #

Connection a b => Connection (Extended a) (Extended b) Source # 
Instance details

Defined in Data.Connection

type Rep (Nan a) Source # 
Instance details

Defined in Data.Prd.Nan

type Rep (Nan a) = D1 (MetaData "Nan" "Data.Prd.Nan" "connections-0.1.0-ICZ79hH9J5S6hHwlSGyIo2" False) (C1 (MetaCons "Nan" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Def" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))
type Rep1 Nan Source # 
Instance details

Defined in Data.Prd.Nan

type Rep1 Nan = D1 (MetaData "Nan" "Data.Prd.Nan" "connections-0.1.0-ICZ79hH9J5S6hHwlSGyIo2" False) (C1 (MetaCons "Nan" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Def" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) Par1))

nan :: b -> (a -> b) -> Nan a -> b Source #

nanf :: Floating b => (a -> b) -> Nan a -> b Source #

nanr :: Integral b => (a -> Ratio b) -> Nan a -> Ratio b Source #

An exception-safe version of nanf for rationals.

mapNan :: (a -> b) -> Nan a -> Nan b Source #

joinNan :: Nan (Nan a) -> Nan a Source #

liftNan :: Prd a => Floating a => (a -> b) -> a -> Nan b Source #