Copyright | (c) 2011-2015 Ian-Woo Kim |
---|---|
License | BSD3 |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
- checkVersionAndMigrate :: ByteString -> IO (Either String Hoodle)
- findFirstPDFFile :: [Page] -> Maybe ByteString
- findAllPDFPages :: [Page] -> [Int]
- replacePDFPages :: [Page] -> [Page]
- embedPDFInHoodle :: Hoodle -> IO Hoodle
- makeEmbeddedPdfSrcString :: ByteString -> ByteString
- makeNewHoodleWithPDF :: Bool -> FilePath -> IO (Maybe Hoodle)
- createPage :: Bool -> Dimension -> ByteString -> Int -> Page
- saveHoodle :: UnitHoodle -> IO UnitHoodle
- makeNewItemImage :: Bool -> FilePath -> IO Item
Documentation
checkVersionAndMigrate :: ByteString -> IO (Either String Hoodle) Source #
check hoodle version and migrate if necessary
findFirstPDFFile :: [Page] -> Maybe ByteString Source #
this is very temporary, need to be changed.
findAllPDFPages :: [Page] -> [Int] Source #
replacePDFPages :: [Page] -> [Page] Source #
:: Bool | does embed pdf? |
-> Dimension | |
-> ByteString | |
-> Int | |
-> Page |
saveHoodle :: UnitHoodle -> IO UnitHoodle Source #