| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Potato.Flow.Serialization.Snake
Synopsis
- versions :: [Int]
- currentVersion :: Int
- data Snake = Snake {}
- data SnakeFormat
- serialize :: SnakeFormat -> (SPotatoFlow, ControllerMeta) -> ByteString
- deserialize :: ByteString -> Either String (SPotatoFlow, ControllerMeta)
- deserialize_internal :: Snake -> Either String (SPotatoFlow, ControllerMeta)
- decodeFile :: FilePath -> IO (Either String (SPotatoFlow, ControllerMeta))
- decodeFileMaybe :: FilePath -> IO (Maybe (SPotatoFlow, ControllerMeta))
Documentation
currentVersion :: Int Source #
version of the current build
Constructors
| Snake | |
Fields
| |
Instances
| FromJSON Snake Source # | |
| ToJSON Snake Source # | |
Defined in Potato.Flow.Serialization.Snake | |
| Generic Snake Source # | |
| Show Snake Source # | |
| Binary Snake Source # | |
| NFData Snake Source # | |
Defined in Potato.Flow.Serialization.Snake | |
| Eq Snake Source # | |
| type Rep Snake Source # | |
Defined in Potato.Flow.Serialization.Snake type Rep Snake = D1 ('MetaData "Snake" "Potato.Flow.Serialization.Snake" "tinytools-0.1.0.3-HF5s50ZrT30LQps3nQySnP" 'False) (C1 ('MetaCons "Snake" 'PrefixI 'True) (S1 ('MetaSel ('Just "_snake_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "_snake_format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "_snake_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) | |
data SnakeFormat Source #
serialize :: SnakeFormat -> (SPotatoFlow, ControllerMeta) -> ByteString Source #
decodeFile :: FilePath -> IO (Either String (SPotatoFlow, ControllerMeta)) Source #
decodeFileMaybe :: FilePath -> IO (Maybe (SPotatoFlow, ControllerMeta)) Source #