Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- store :: String -> SlotNoBhh -> (FilePath -> IO ()) -> IO FilePath
- toName :: String -> SlotNoBhh -> FilePath
- keepLatestTwo :: String -> IO ()
- loadLatest :: String -> (FilePath -> IO a) -> IO a -> IO (a, ChainPoint)
- list :: FilePath -> String -> IO [(FilePath, SlotNoBhh)]
- bhhFromFileName :: String -> Either String SlotNoBhh
- prefixBhhFromFileName :: String -> Either String (String, SlotNoBhh)
- eitherParseHashBlockHeader :: String -> Either String (Hash BlockHeader)
- parseSlotNo_ :: String -> Either String SlotNo
- leftError :: String -> String -> Either String a
- splitOn :: Eq a => a -> [a] -> [[a]]
Store
keepLatestTwo :: String -> IO () #
Read
loadLatest :: String -> (FilePath -> IO a) -> IO a -> IO (a, ChainPoint) #
Load ledger state from file, while taking the chain point it's at from the file name.
Parsers
eitherParseHashBlockHeader :: String -> Either String (Hash BlockHeader) #
parseSlotNo_ :: String -> Either String SlotNo #