octane-0.11.0: Parse Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Octane.Type.Dictionary

Synopsis

Documentation

newtype Dictionary a Source #

A dictionary that maps text to values.

Constructors

Dictionary (Map Text a) 

Instances

IsList (Dictionary a) Source # 

Associated Types

type Item (Dictionary a) :: * #

Eq a => Eq (Dictionary a) Source # 

Methods

(==) :: Dictionary a -> Dictionary a -> Bool #

(/=) :: Dictionary a -> Dictionary a -> Bool #

Show a => Show (Dictionary a) Source # 
Generic (Dictionary a) Source # 

Associated Types

type Rep (Dictionary a) :: * -> * #

Methods

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

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

ToJSON a => ToJSON (Dictionary a) Source # 
Binary a => Binary (Dictionary a) Source #

Reads elements are stored with the key first, then the value. The dictionary ends when a key is None.

Methods

put :: Dictionary a -> Put #

get :: Get (Dictionary a) #

putList :: [Dictionary a] -> Put #

NFData a => NFData (Dictionary a) Source # 

Methods

rnf :: Dictionary a -> () #

type Rep (Dictionary a) Source # 
type Rep (Dictionary a) = D1 (MetaData "Dictionary" "Octane.Type.Dictionary" "octane-0.11.0-K3oATOAOKzu3J42bjJyWZ8" True) (C1 (MetaCons "Dictionary" PrefixI True) (S1 (MetaSel (Just Symbol "unpack") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Map Text a))))
type Item (Dictionary a) Source # 
type Item (Dictionary a) = (Text, a)