Importing clan data is probably never time-critical as the total file size is extremely small. Should this ever change, swap to iteratee. The file is read strictly.
- fromFile :: FilePath -> IO [Clan]
- fromByteString :: ByteString -> [Clan]
- mkClan :: [ByteString] -> Clan
Documentation
fromByteString :: ByteString -> [Clan]Source
Transform a bytestring into a list of Clan
s.
mkClan :: [ByteString] -> ClanSource
Given a list of bytestrings, create one Clan.
TODO return Maybe, make crash-safe (not really high on the list...)