hasklepias-0.17.0: embedded DSL for defining epidemiologic cohorts
Copyright(c) NoviSci Inc 2020
LicenseBSD3
Maintainerbsaul@novisci.com
Safe HaskellSafe
LanguageHaskell2010

Stype.Categorical.Binary

Description

 
Synopsis

Documentation

data Binary Source #

Binary Type

Constructors

Zero 
One 

Instances

Instances details
Eq Binary Source # 
Instance details

Defined in Stype.Categorical.Binary

Methods

(==) :: Binary -> Binary -> Bool #

(/=) :: Binary -> Binary -> Bool #

Ord Binary Source # 
Instance details

Defined in Stype.Categorical.Binary

Show Binary Source # 
Instance details

Defined in Stype.Categorical.Binary

Generic Binary Source # 
Instance details

Defined in Stype.Categorical.Binary

Associated Types

type Rep Binary :: Type -> Type #

Methods

from :: Binary -> Rep Binary x #

to :: Rep Binary x -> Binary #

ToJSON Binary Source # 
Instance details

Defined in Stype.Aeson

type Rep Binary Source # 
Instance details

Defined in Stype.Categorical.Binary

type Rep Binary = D1 ('MetaData "Binary" "Stype.Categorical.Binary" "hasklepias-0.17.0-inplace" 'False) (C1 ('MetaCons "Zero" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "One" 'PrefixI 'False) (U1 :: Type -> Type))

toBool :: Binary -> Bool Source #

Convert a Binary to Bool.

toInt :: Binary -> Int Source #

Convert Binary to Int.

fromBool :: Bool -> Binary Source #

Create a Binary from a Bool.