ghc-8.0.2: The GHC API

Safe HaskellNone
LanguageHaskell2010

Binary

Documentation

data Bin a Source #

Instances

Bounded (Bin a) Source # 
Eq (Bin a) Source # 

Methods

(==) :: Bin a -> Bin a -> Bool #

(/=) :: Bin a -> Bin a -> Bool #

Ord (Bin a) Source # 

Methods

compare :: Bin a -> Bin a -> Ordering #

(<) :: Bin a -> Bin a -> Bool #

(<=) :: Bin a -> Bin a -> Bool #

(>) :: Bin a -> Bin a -> Bool #

(>=) :: Bin a -> Bin a -> Bool #

max :: Bin a -> Bin a -> Bin a #

min :: Bin a -> Bin a -> Bin a #

Show (Bin a) Source # 

Methods

showsPrec :: Int -> Bin a -> ShowS Source #

show :: Bin a -> String Source #

showList :: [Bin a] -> ShowS Source #

Binary (Bin a) Source # 

Methods

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

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

get :: BinHandle -> IO (Bin a) Source #

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 Source # 
Binary Char Source # 
Binary Int Source # 

Methods

put_ :: BinHandle -> Int -> IO () Source #

put :: BinHandle -> Int -> IO (Bin Int) Source #

get :: BinHandle -> IO Int Source #

Binary Int8 Source # 
Binary Int16 Source # 
Binary Int32 Source # 
Binary Int64 Source # 
Binary Integer Source # 
Binary Word8 Source # 
Binary Word16 Source # 
Binary Word32 Source # 
Binary Word64 Source # 
Binary TypeRep Source # 
Binary () Source # 

Methods

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

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

get :: BinHandle -> IO () Source #

Binary TyCon Source # 
Binary Fingerprint Source # 
Binary ByteString Source # 
Binary Serialized Source # 
Binary UTCTime Source # 
Binary Day Source # 

Methods

put_ :: BinHandle -> Day -> IO () Source #

put :: BinHandle -> Day -> IO (Bin Day) Source #

get :: BinHandle -> IO Day Source #

Binary DiffTime Source # 
Binary OccName Source # 
Binary UnitId Source # 
Binary ModuleName Source # 
Binary Module Source # 
Binary Name Source # 
Binary FastString Source # 
Binary SrcSpan Source # 
Binary LeftOrRight Source # 
Binary InlineSpec Source # 
Binary InlinePragma Source # 
Binary RuleMatchInfo Source # 
Binary Activation Source # 
Binary TupleSort Source # 
Binary OverlapMode Source # 
Binary OverlapFlag Source # 
Binary RecFlag Source # 
Binary FixityDirection Source # 
Binary Fixity Source # 
Binary WarningTxt Source # 
Binary StringLiteral Source # 
Binary FunctionOrData Source # 
Binary HscSource Source # 
Binary CType Source # 
Binary Header Source # 
Binary CCallConv Source # 
Binary CCallTarget Source # 
Binary CCallSpec Source # 
Binary CExportSpec Source # 
Binary Safety Source # 
Binary ForeignCall Source # 
Binary NameSpace Source # 
Binary Role Source # 
Binary IsCafCC Source # 
Binary CostCentre Source # 
Binary IsPatSyn Source # 
Binary AvailInfo Source # 
Binary Injectivity Source # 
Binary VisibilityFlag Source # 
Binary Literal Source # 
Binary SrcUnpackedness Source # 
Binary SrcStrictness Source # 
Binary IsOrphan Source # 
Binary StrictSig Source # 
Binary DmdType Source # 
Binary CPRResult Source # 
Binary DmdResult Source # 
Binary Count Source # 
Binary UseDmd Source # 
Binary StrDmd Source # 
Binary IfaceUnivCoProv Source # 
Binary IfaceCoercion Source # 
Binary IfaceTyConInfo Source # 
Binary IfaceTyCon Source # 
Binary IfaceTcArgs Source # 
Binary IfaceTyConBinder Source # 
Binary IfaceForAllBndr Source # 
Binary IfaceTyLit Source # 
Binary IfaceType Source # 
Binary IfaceOneShot Source # 
Binary IfaceBndr Source # 
Binary IfaceLetBndr Source # 
Binary IfaceBinding Source # 
Binary IfaceConAlt Source # 
Binary IfaceTickish Source # 
Binary IfaceExpr Source # 
Binary IfaceIdDetails Source # 
Binary IfaceUnfolding Source # 
Binary IfaceInfoItem Source # 
Binary IfaceIdInfo Source # 
Binary IfaceAnnotation Source # 
Binary IfaceRule Source # 
Binary IfaceFamInst Source # 
Binary IfaceClsInst Source # 
Binary IfaceSrcBang Source # 
Binary IfaceBang Source # 
Binary IfaceConDecl Source # 
Binary IfaceConDecls Source # 
Binary IfaceAxBranch Source # 
Binary IfaceAT Source # 
Binary IfaceClassOp Source # 
Binary IfaceFamTyConFlav Source # 
Binary IfaceTyConParent Source # 
Binary IfaceDecl Source # 
Binary IfaceTrustInfo Source # 
Binary IfaceVectInfo Source # 
Binary Usage Source # 
Binary Dependencies Source # 
Binary Warnings Source # 
Binary ModIface Source # 
Binary a => Binary [a] Source # 

Methods

put_ :: BinHandle -> [a] -> IO () Source #

put :: BinHandle -> [a] -> IO (Bin [a]) Source #

get :: BinHandle -> IO [a] Source #

Binary a => Binary (Maybe a) Source # 

Methods

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

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

get :: BinHandle -> IO (Maybe a) Source #

Binary a => Binary (Ratio a) Source # 

Methods

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

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

get :: BinHandle -> IO (Ratio a) Source #

Binary (DefMethSpec IfaceType) Source # 
Binary (Bin a) Source # 

Methods

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

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

get :: BinHandle -> IO (Bin a) Source #

Binary a => Binary (BooleanFormula a) Source # 
Binary a => Binary (FieldLbl a) Source # 
Binary name => Binary (AnnTarget name) Source # 

Methods

put_ :: BinHandle -> AnnTarget name -> IO () Source #

put :: BinHandle -> AnnTarget name -> IO (Bin (AnnTarget name)) Source #

get :: BinHandle -> IO (AnnTarget name) Source #

(Binary a, Binary b) => Binary (Either a b) Source # 

Methods

put_ :: BinHandle -> Either a b -> IO () Source #

put :: BinHandle -> Either a b -> IO (Bin (Either a b)) Source #

get :: BinHandle -> IO (Either a b) Source #

(Binary a, Binary b) => Binary (a, b) Source # 

Methods

put_ :: BinHandle -> (a, b) -> IO () Source #

put :: BinHandle -> (a, b) -> IO (Bin (a, b)) Source #

get :: BinHandle -> IO (a, b) Source #

Binary a => Binary (GenLocated SrcSpan a) Source # 
(Binary a, Binary b, Binary c) => Binary (a, b, c) Source # 

Methods

put_ :: BinHandle -> (a, b, c) -> IO () Source #

put :: BinHandle -> (a, b, c) -> IO (Bin (a, b, c)) Source #

get :: BinHandle -> IO (a, b, c) Source #

(Binary a, Binary b, Binary c, Binary d) => Binary (a, b, c, d) Source # 

Methods

put_ :: BinHandle -> (a, b, c, d) -> IO () Source #

put :: BinHandle -> (a, b, c, d) -> IO (Bin (a, b, c, d)) Source #

get :: BinHandle -> IO (a, b, c, d) Source #

(Binary a, Binary b, Binary c, Binary d, Binary e) => Binary (a, b, c, d, e) Source # 

Methods

put_ :: BinHandle -> (a, b, c, d, e) -> IO () Source #

put :: BinHandle -> (a, b, c, d, e) -> IO (Bin (a, b, c, d, e)) Source #

get :: BinHandle -> IO (a, b, c, d, e) Source #

(Binary a, Binary b, Binary c, Binary d, Binary e, Binary f) => Binary (a, b, c, d, e, f) Source # 

Methods

put_ :: BinHandle -> (a, b, c, d, e, f) -> IO () Source #

put :: BinHandle -> (a, b, c, d, e, f) -> IO (Bin (a, b, c, d, e, f)) Source #

get :: BinHandle -> IO (a, b, c, d, e, f) Source #

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 #