T4XHW5DFBYGXQ7DOYOFFMGJUHVIC2JXJSF6QWWOXFTMNGFV65GDAC
readDeckList ::
(DeckSYM repr) =>
FilePath
-> IO (Either [ReadError] [DiffSig repr])
readDeckList p = do
content <- windowsToLinuxNewLine <$> TIO.readFile p
windowsToLinuxNewLines :: Text -> Text
windowsToLinuxNewLines = T.replace "\r\n" "\n"
fromByteString ::
(DeckSYM repr) => ByteString -> Either [ReadError] [DiffSig repr]
fromByteString content = do
res <- mapLeft (const [IllegalFormat]) $ decodeUtf8' content
fromText res
fromText :: (DeckSYM repr) => Text -> Either [ReadError] [DiffSig repr]
fromText content =