1 {-# LANGUAGE ScopedTypeVariables #-}
5 import Data.Maybe (fromJust)
6 import Text.HandsomeSoup (parseHtml)
15 article_html <- readFile "test/fixtures/501317-article.html"
16 ioap <- parse $ parseHtml article_html
17 let article_page :: ArticlePage = fromJust $ ioap
18 epublish article_page "single_article.epub"
20 page_html <- readFile "test/fixtures/500848-page.html"
21 ioap_f <- parse $ parseHtml page_html
22 let full_page :: FullPage = fromJust $ ioap_f
23 --putStrLn $ to_xhtml full_page
24 --epublish full_page "full_page.epub"