Portability | GHC |
---|---|
Stability | experimental |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Safe Haskell | None |
- dropWhile :: (Show a, Monad m) => (a -> Bool) -> Sink a m ()
- flipap :: a -> (a -> b) -> b
- unit :: Monad m => m ()
- skipspace :: Text -> Text
- many0event :: Monad m => (Text, Text) -> (Event -> Sink Event m (Either String a)) -> Sink Event m (Either String [a])
- many1event :: Monad m => (Text, Text) -> (Event -> Sink Event m (Either String a)) -> Sink Event m (Either String [a])
- many1eventWrkr :: Monad m => (Text, Text) -> ([a] -> [a]) -> (Event -> Sink Event m (Either String a)) -> Sink Event m (Either String [a])
- drop2NextStartOrEnd :: Monad m => Sink Event m (Either (Text, Event) Text)
- pXournal :: Monad m => Sink Event m (Either String Xournal)
- pPage :: Monad m => Event -> Sink Event m (Either String Page)
- pTitle :: Monad m => Sink Event m (Either String ByteString)
- pBkg :: Monad m => Sink Event m (Either String Background)
- pLayer :: Monad m => Event -> Sink Event m (Either String Layer)
- pStroke :: Monad m => Event -> Sink Event m (Either String Stroke)
- getStrokeContent :: ([Pair Double Double] -> [Pair Double Double]) -> Text -> Either String [Pair Double Double]
- getStroke :: Event -> Either String (Stroke, StrokeWidth)
- data StrokeWidth
- = SingleWidth Double
- | VarWidth [Double]
- getWidth :: ([Double] -> [Double]) -> Text -> Either String StrokeWidth
- getBackground :: Event -> Either String Background
- getDimension :: Event -> Either String Dimension
- getContent :: Event -> Either String Text
- isEventStartEnd :: Event -> Bool
- isStart :: Text -> Event -> Bool
- isEnd :: Text -> Event -> Bool
- parseXmlFile :: (MonadThrow m, MonadIO m) => Handle -> Sink Event m a -> m a
- parseXojFile :: FilePath -> IO (Either String Xournal)
- parseXojGzFile :: FilePath -> IO (Either String Xournal)
- parseXournal :: FilePath -> IO (Either String Xournal)
- iterPrint :: (Show s, MonadIO m) => Sink s m ()
utils
many0event :: Monad m => (Text, Text) -> (Event -> Sink Event m (Either String a)) -> Sink Event m (Either String [a])Source
many1event :: Monad m => (Text, Text) -> (Event -> Sink Event m (Either String a)) -> Sink Event m (Either String [a])Source
many1eventWrkr :: Monad m => (Text, Text) -> ([a] -> [a]) -> (Event -> Sink Event m (Either String a)) -> Sink Event m (Either String [a])Source
parsers
for each event
getStrokeContent :: ([Pair Double Double] -> [Pair Double Double]) -> Text -> Either String [Pair Double Double]Source
predicates
isEventStartEnd :: Event -> BoolSource
driver routines
parseXmlFile :: (MonadThrow m, MonadIO m) => Handle -> Sink Event m a -> m aSource
generic xml file driver