Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Comment = Comment {}
- parse :: Block -> Maybe Comment
- remove :: [Block] -> [Block]
- split :: [Block] -> (Comment, [Block])
- partition :: [Block] -> (Comment, [Block])
- data SpeakerNotes
- speakerNotesToText :: SpeakerNotes -> Text
- data SpeakerNotesHandle
- withSpeakerNotesHandle :: SpeakerNotesSettings -> (SpeakerNotesHandle -> IO a) -> IO a
- writeSpeakerNotes :: SpeakerNotesHandle -> EncodingFallback -> SpeakerNotes -> IO ()
- parseSlideSettings :: Comment -> Either String PresentationSettings
Documentation
split :: [Block] -> (Comment, [Block]) Source #
Take all comments from the front of the list. Return those and the remaining blocks.
partition :: [Block] -> (Comment, [Block]) Source #
Partition the list into speaker notes and other blocks.
data SpeakerNotes Source #
Instances
Monoid SpeakerNotes Source # | |
Defined in Patat.Presentation.Comments mempty :: SpeakerNotes # mappend :: SpeakerNotes -> SpeakerNotes -> SpeakerNotes # mconcat :: [SpeakerNotes] -> SpeakerNotes # | |
Semigroup SpeakerNotes Source # | |
Defined in Patat.Presentation.Comments (<>) :: SpeakerNotes -> SpeakerNotes -> SpeakerNotes # sconcat :: NonEmpty SpeakerNotes -> SpeakerNotes # stimes :: Integral b => b -> SpeakerNotes -> SpeakerNotes # | |
Show SpeakerNotes Source # | |
Defined in Patat.Presentation.Comments showsPrec :: Int -> SpeakerNotes -> ShowS # show :: SpeakerNotes -> String # showList :: [SpeakerNotes] -> ShowS # | |
Eq SpeakerNotes Source # | |
Defined in Patat.Presentation.Comments (==) :: SpeakerNotes -> SpeakerNotes -> Bool # (/=) :: SpeakerNotes -> SpeakerNotes -> Bool # |
data SpeakerNotesHandle Source #
withSpeakerNotesHandle :: SpeakerNotesSettings -> (SpeakerNotesHandle -> IO a) -> IO a Source #
writeSpeakerNotes :: SpeakerNotesHandle -> EncodingFallback -> SpeakerNotes -> IO () Source #