octane-0.13.3: Parse Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Octane.Type.Boolean

Synopsis

Documentation

newtype Boolean Source #

A boolean value.

Constructors

Boolean Bool 

Instances

Eq Boolean Source # 

Methods

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

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

Show Boolean Source # 
Generic Boolean Source # 

Associated Types

type Rep Boolean :: * -> * #

Methods

from :: Boolean -> Rep Boolean x #

to :: Rep Boolean x -> Boolean #

ToJSON Boolean Source #

Encoded directly as a JSON boolean.

>>> Aeson.encode (Boolean True)
"true"
Binary Boolean Source #

Stored in the last bit of a byte. Decoding will fail if the byte is anything other than 0b00000000 or 0b00000001.

>>> Binary.decode "\x01" :: Boolean
Boolean {unpack = True}
>>> Binary.encode (Boolean True)
"\SOH"

Methods

put :: Boolean -> Put #

get :: Get Boolean #

putList :: [Boolean] -> Put #

BinaryBit Boolean Source #

Stored as a bit.

>>> Binary.runGet (BinaryBit.runBitGet (BinaryBit.getBits 0)) "\x80" :: Boolean
Boolean {unpack = True}
>>> Binary.runPut (BinaryBit.runBitPut (BinaryBit.putBits 0 (Boolean True)))
"\128"

Methods

putBits :: Int -> Boolean -> BitPut () #

getBits :: Int -> BitGet Boolean #

NFData Boolean Source # 

Methods

rnf :: Boolean -> () #

type Rep Boolean Source # 
type Rep Boolean = D1 (MetaData "Boolean" "Octane.Type.Boolean" "octane-0.13.3-GnboydEgdVpJh0hfzYOLZA" True) (C1 (MetaCons "Boolean" PrefixI True) (S1 (MetaSel (Just Symbol "unpack") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool)))