Next: decodeFile, Previous: decode, Up: Serialize and deserialize
Parse a Lazy.ByteString to your type. The error is produced by attoparsec and is not very useful.
decodeLazy :: FromRon a => Lazy.ByteString -> Either String a