hyraxAbi-0.2.3.1: Modules for parsing, generating and manipulating AB1 files.

Copyright(c) HyraxBio 2018
LicenseBSD3
Maintainerandre@hyraxbio.co.za, andre@andrevdm.com
Stabilitybeta
Safe HaskellSafe
LanguageHaskell2010

Hyrax.Abi.Read

Description

Functionality for reading and parsing AB1 files

e.g.

abi' <- readAbi "example.ab1"

case abi' of
  Left e -> putStrLn $ "error reading ABI: " <> e
  Right abi -> print $ clearAbi abi
Synopsis

Documentation

readAbi :: FilePath -> IO (Either Text Abi) Source #

Read and parse an AB1 file

getAbi :: ByteString -> Either Text Abi Source #

Parse an AB1 from a ByteString

clear :: Directory -> Directory Source #

Removes all data from a directory entry. This will probably only be useful when trying to show an ABI value

clearAbi :: Abi -> Abi Source #

Removes all data from the ABI's directories

getDebug :: Directory -> Directory Source #

Populate the directory entry with debug data (into dDataDebug). This is done for selected types only, e.g. for strings so that printing the structure will display readable/meaningfull info

getHeader :: Get Header Source #

Parse the ABI Header

getDirectories :: ByteString -> [Directory] -> Int -> Get [Directory] Source #

Parse all the directoy entries

getDirectory :: ByteString -> Get Directory Source #

Parse a single Directory entry and read its data