Stype.Categorical.Binary
Description
data Binary Source #
Binary Type
Constructors
Defined in Stype.Categorical.Binary
Methods
(==) :: Binary -> Binary -> Bool #
(/=) :: Binary -> Binary -> Bool #
compare :: Binary -> Binary -> Ordering #
(<) :: Binary -> Binary -> Bool #
(<=) :: Binary -> Binary -> Bool #
(>) :: Binary -> Binary -> Bool #
(>=) :: Binary -> Binary -> Bool #
max :: Binary -> Binary -> Binary #
min :: Binary -> Binary -> Binary #
showsPrec :: Int -> Binary -> ShowS #
show :: Binary -> String #
showList :: [Binary] -> ShowS #
Associated Types
type Rep Binary :: Type -> Type #
from :: Binary -> Rep Binary x #
to :: Rep Binary x -> Binary #
Defined in Stype.Aeson
toJSON :: Binary -> Value #
toEncoding :: Binary -> Encoding #
toJSONList :: [Binary] -> Value #
toEncodingList :: [Binary] -> Encoding #
toBool :: Binary -> Bool Source #
Convert a Binary to Bool.
Binary
Bool
toInt :: Binary -> Int Source #
Convert Binary to Int.
Int
fromBool :: Bool -> Binary Source #
Create a Binary from a Bool.