readability-0.1.0.0: Extracts text of main article from HTML document

Safe HaskellNone
LanguageHaskell2010

Readability

Contents

Synopsis

Data types

data Article Source #

Result of processing HTML through readability.

Constructors

Article 

Fields

Instances
Show Article Source # 
Instance details

Defined in Readability.Types

Construction

fromByteString :: ByteString -> Maybe Article Source #

Extracts article from HTML in ByteString.

fromDocument :: Document -> Maybe Article Source #

Extracts article from HTML represented as HTML document.

fromFile :: FilePath -> IO (Maybe Article) Source #

Extracts article from HTML in given file.

fromText :: Text -> Maybe Article Source #

Extracts article from HTML in given text.