octane-0.13.3: Parse Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Octane.Type.Int8

Synopsis

Documentation

newtype Int8 Source #

A 8-bit signed integer.

Constructors

Int8 Int8 

Instances

Eq Int8 Source # 

Methods

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

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

Num Int8 Source # 

Methods

(+) :: Int8 -> Int8 -> Int8 #

(-) :: Int8 -> Int8 -> Int8 #

(*) :: Int8 -> Int8 -> Int8 #

negate :: Int8 -> Int8 #

abs :: Int8 -> Int8 #

signum :: Int8 -> Int8 #

fromInteger :: Integer -> Int8 #

Ord Int8 Source # 

Methods

compare :: Int8 -> Int8 -> Ordering #

(<) :: Int8 -> Int8 -> Bool #

(<=) :: Int8 -> Int8 -> Bool #

(>) :: Int8 -> Int8 -> Bool #

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

max :: Int8 -> Int8 -> Int8 #

min :: Int8 -> Int8 -> Int8 #

Show Int8 Source #

Shown as 1234.

>>> show (1 :: Int8)
"1"

Methods

showsPrec :: Int -> Int8 -> ShowS #

show :: Int8 -> String #

showList :: [Int8] -> ShowS #

Generic Int8 Source # 

Associated Types

type Rep Int8 :: * -> * #

Methods

from :: Int8 -> Rep Int8 x #

to :: Rep Int8 x -> Int8 #

ToJSON Int8 Source #

Encoded directly as a JSON number.

>>> Aeson.encode (1 :: Int8)
"1"
Binary Int8 Source #
>>> Binary.decode "\x01" :: Int8
1
>>> Binary.encode (1 :: Int8)
"\SOH"

Methods

put :: Int8 -> Put #

get :: Get Int8 #

putList :: [Int8] -> Put #

BinaryBit Int8 Source #

Stored with the bits reversed.

>>> Binary.runGet (BinaryBit.runBitGet (BinaryBit.getBits 0)) "\x80" :: Int8
1
>>> Binary.runPut (BinaryBit.runBitPut (BinaryBit.putBits 0 (1 :: Int8)))
"\128"

Methods

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

getBits :: Int -> BitGet Int8 #

NFData Int8 Source # 

Methods

rnf :: Int8 -> () #

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

fromInt8 :: Integral a => Int8 -> a Source #

Converts a Int8 into any Integral value.

>>> fromInt8 1 :: Int.Int8
1

toInt8 :: Integral a => a -> Int8 Source #

Converts any Integral value into a Int8.

>>> toInt8 (1 :: Int.Int8)
1