rattletrap-2.1.0: Parse and generate Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Rattletrap.Helper

Contents

Description

This module provides helper functions for converting replays to and from both their binary format and JSON.

Synopsis

Lazy byte strings

decodeReplay :: ByteString -> Either String Replay Source #

Parses a raw replay.

encodeJson :: Replay -> ByteString Source #

Encodes a replay as JSON.

decodeJson :: ByteString -> Either String Replay Source #

Parses a JSON replay.

encodeReplay :: Replay -> ByteString Source #

Encodes a raw replay.

File paths

Handles