Ar

ghc-8.6.3: The GHC API

Safe Haskell | None
Language | Haskell2010

Ar

# Documentation

data ArchiveEntry #

Constructors

ArchiveEntry |
Fields filename :: String File name. filetime :: Int File modification time. fileown :: Int File owner. filegrp :: Int File group. filemode :: Int File mode. filesize :: Int File size. filedata :: ByteString File bytes.

Instances

Eq ArchiveEntry # |
Instance details Defined in Ar Methods (==) :: ArchiveEntry -> ArchiveEntry -> Bool # (/=) :: ArchiveEntry -> ArchiveEntry -> Bool #
Show ArchiveEntry # |
Instance details Defined in Ar Methods showsPrec :: Int -> ArchiveEntry -> ShowS Source # show :: ArchiveEntry -> String Source # showList :: [ArchiveEntry] -> ShowS Source #

newtype Archive #

Constructors

Archive [ArchiveEntry] |

Instances

Eq Archive # |
Instance details Defined in Ar Methods (==) :: Archive -> Archive -> Bool # (/=) :: Archive -> Archive -> Bool #
Show Archive # |
Instance details Defined in Ar Methods showsPrec :: Int -> Archive -> ShowS Source # show :: Archive -> String Source # showList :: [Archive] -> ShowS Source #
Semigroup Archive # |
Instance details Defined in Ar Methods (<>) :: Archive -> Archive -> Archive Source # sconcat :: NonEmpty Archive -> Archive Source # stimes :: Integral b => b -> Archive -> Archive Source #
Monoid Archive # |
Instance details Defined in Ar Methods mempty :: Archive Source # mappend :: Archive -> Archive -> Archive Source # mconcat :: [Archive] -> Archive Source #

afilter :: (ArchiveEntry -> Bool) -> Archive -> Archive #

parseAr :: ByteString -> Archive #

loadAr :: FilePath -> IO Archive #

loadObj :: FilePath -> IO ArchiveEntry #

writeBSDAr :: FilePath -> Archive -> IO () #

writeGNUAr :: FilePath -> Archive -> IO () #

isBSDSymdef :: ArchiveEntry -> Bool #

isGNUSymdef :: ArchiveEntry -> Bool #