warc-1.0.5: A parser for the Web Archive (WARC) format
Safe HaskellNone
LanguageHaskell2010

Data.Warc.Header

Synopsis

Parsing

Encoding

WARC Version

data Version Source #

Constructors

Version 

Instances

Instances details
Eq Version Source # 
Instance details

Defined in Data.Warc.Header

Methods

(==) :: Version -> Version -> Bool #

(/=) :: Version -> Version -> Bool #

Ord Version Source # 
Instance details

Defined in Data.Warc.Header

Read Version Source # 
Instance details

Defined in Data.Warc.Header

Show Version Source # 
Instance details

Defined in Data.Warc.Header

Types

data RecordHeader Source #

Instances

Instances details
Show RecordHeader Source # 
Instance details

Defined in Data.Warc.Header

newtype RecordId Source #

Constructors

RecordId Uri 

Instances

Instances details
Eq RecordId Source # 
Instance details

Defined in Data.Warc.Header

Ord RecordId Source # 
Instance details

Defined in Data.Warc.Header

Read RecordId Source # 
Instance details

Defined in Data.Warc.Header

Show RecordId Source # 
Instance details

Defined in Data.Warc.Header

data Digest Source #

Constructors

Digest 

Instances

Instances details
Eq Digest Source # 
Instance details

Defined in Data.Warc.Header

Methods

(==) :: Digest -> Digest -> Bool #

(/=) :: Digest -> Digest -> Bool #

Ord Digest Source # 
Instance details

Defined in Data.Warc.Header

Read Digest Source # 
Instance details

Defined in Data.Warc.Header

Show Digest Source # 
Instance details

Defined in Data.Warc.Header

newtype Uri Source #

Constructors

Uri ByteString 

Instances

Instances details
Eq Uri Source # 
Instance details

Defined in Data.Warc.Header

Methods

(==) :: Uri -> Uri -> Bool #

(/=) :: Uri -> Uri -> Bool #

Ord Uri Source # 
Instance details

Defined in Data.Warc.Header

Methods

compare :: Uri -> Uri -> Ordering #

(<) :: Uri -> Uri -> Bool #

(<=) :: Uri -> Uri -> Bool #

(>) :: Uri -> Uri -> Bool #

(>=) :: Uri -> Uri -> Bool #

max :: Uri -> Uri -> Uri #

min :: Uri -> Uri -> Uri #

Read Uri Source # 
Instance details

Defined in Data.Warc.Header

Show Uri Source # 
Instance details

Defined in Data.Warc.Header

Methods

showsPrec :: Int -> Uri -> ShowS #

show :: Uri -> String #

showList :: [Uri] -> ShowS #

Header field types

data Field a Source #

Constructors

Field 

Fields

newtype FieldName Source #

Constructors

FieldName 

Fields

Instances

Instances details
Eq FieldName Source # 
Instance details

Defined in Data.Warc.Header

Ord FieldName Source # 
Instance details

Defined in Data.Warc.Header

Read FieldName Source # 
Instance details

Defined in Data.Warc.Header

Show FieldName Source # 
Instance details

Defined in Data.Warc.Header

IsString FieldName Source # 
Instance details

Defined in Data.Warc.Header

Hashable FieldName Source # 
Instance details

Defined in Data.Warc.Header

field :: Field a -> Traversal' RecordHeader a Source #

A lens-y means of querying Fields.

lookupField :: RecordHeader -> Field a -> Maybe (Either String a) Source #

Lookup the value of a field. Returns Nothing if the field is not present, Just (Left err) in the event of a parse error, and Just (Right v) on success.

mapField :: (a -> b) -> (b -> a) -> Field a -> Field b Source #

Standard fields

Lenses