ghc-7.10.2: The GHC API

Safe HaskellNone
LanguageHaskell2010

Binary

Documentation

data Bin a Source

Instances

Bounded (Bin a) 
Eq (Bin a) 
Ord (Bin a) 
Show (Bin a) 
Binary (Bin a) 

class Binary a where Source

Minimal complete definition

get

Methods

put_ :: BinHandle -> a -> IO () Source

put :: BinHandle -> a -> IO (Bin a) Source

get :: BinHandle -> IO a Source

Instances

Binary Bool 
Binary Char 
Binary Int 
Binary Int8 
Binary Int16 
Binary Int32 
Binary Int64 
Binary Integer 
Binary Word8 
Binary Word16 
Binary Word32 
Binary Word64 
Binary TypeRep 
Binary () 
Binary TyCon 
Binary Fingerprint 
Binary ByteString 
Binary UTCTime 
Binary Day 
Binary DiffTime 
Binary PackageKey 
Binary ModuleName 
Binary Module 
Binary OccName 
Binary FastString 
Binary Name 
Binary SrcSpan 
Binary InlineSpec 
Binary InlinePragma 
Binary RuleMatchInfo 
Binary Activation 
Binary DefMethSpec 
Binary TupleSort 
Binary OverlapMode 
Binary OverlapFlag 
Binary RecFlag 
Binary FixityDirection 
Binary Fixity 
Binary WarningTxt 
Binary FunctionOrData 
Binary Serialized 
Binary CType 
Binary Header 
Binary CCallConv 
Binary CCallTarget 
Binary CCallSpec 
Binary CExportSpec 
Binary Safety 
Binary ForeignCall 
Binary NameSpace 
Binary AvailInfo 
Binary IsCafCC 
Binary CostCentre 
Binary Role 
Binary LeftOrRight 
Binary StrictSig 
Binary DmdType 
Binary CPRResult 
Binary DmdResult 
Binary Count 
Binary UseDmd 
Binary StrDmd 
Binary Literal 
Binary IsOrphan 
Binary IfaceCoercion 
Binary IfaceTyCon 
Binary IfaceTcArgs 
Binary IfaceTyLit 
Binary IfaceType 
Binary IfaceOneShot 
Binary IfaceBndr 
Binary IfaceLetBndr 
Binary IfaceBinding 
Binary IfaceConAlt 
Binary IfaceTickish 
Binary IfaceExpr 
Binary IfaceIdDetails 
Binary IfaceUnfolding 
Binary IfaceInfoItem 
Binary IfaceIdInfo 
Binary IfaceAnnotation 
Binary IfaceRule 
Binary IfaceFamInst 
Binary IfaceClsInst 
Binary IfaceBang 
Binary IfaceConDecl 
Binary IfaceConDecls 
Binary IfaceAxBranch 
Binary IfaceAT 
Binary IfaceClassOp 
Binary IfaceFamTyConFlav 
Binary IfaceTyConParent 
Binary IfaceDecl 
Binary IfaceTrustInfo 
Binary IfaceVectInfo 
Binary Usage 
Binary Dependencies 
Binary Warnings 
Binary ModIface 
Binary a => Binary [a] 
(Integral a, Binary a) => Binary (Ratio a) 
Binary a => Binary (Maybe a) 
Binary (Bin a) 
Binary a => Binary (BooleanFormula a) 
Binary name => Binary (AnnTarget name) 
(Binary a, Binary b) => Binary (Either a b) 
(Binary a, Binary b) => Binary (a, b) 
Binary a => Binary (GenLocated SrcSpan a) 
(Binary a, Binary b, Binary c) => Binary (a, b, c) 
(Binary a, Binary b, Binary c, Binary d) => Binary (a, b, c, d) 
(Binary a, Binary b, Binary c, Binary d, Binary e) => Binary (a, b, c, d, e) 
(Binary a, Binary b, Binary c, Binary d, Binary e, Binary f) => Binary (a, b, c, d, e, f) 

seekBin :: BinHandle -> Bin a -> IO () Source

castBin :: Bin a -> Bin b Source

putAt :: Binary a => BinHandle -> Bin a -> a -> IO () Source

getAt :: Binary a => BinHandle -> Bin a -> IO a Source

lazyPut :: Binary a => BinHandle -> a -> IO () Source

data ByteArray Source

Constructors

BA ByteArray# 

putByteArray :: BinHandle -> ByteArray# -> Int# -> IO () Source