| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Patat.Presentation.Comments
Synopsis
- data Comment = Comment {
- cSpeakerNotes :: SpeakerNotes
- cConfig :: Either String PresentationSettings
- 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
Constructors
| Comment | |
Fields
| |
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 Methods mappend :: SpeakerNotes -> SpeakerNotes -> SpeakerNotes mconcat :: [SpeakerNotes] -> SpeakerNotes | |
| Semigroup SpeakerNotes Source # | |
Defined in Patat.Presentation.Comments Methods (<>) :: SpeakerNotes -> SpeakerNotes -> SpeakerNotes sconcat :: NonEmpty SpeakerNotes -> SpeakerNotes stimes :: Integral b => b -> SpeakerNotes -> SpeakerNotes | |
| Show SpeakerNotes Source # | |
Defined in Patat.Presentation.Comments Methods showsPrec :: Int -> SpeakerNotes -> ShowS show :: SpeakerNotes -> String showList :: [SpeakerNotes] -> ShowS | |
| Eq SpeakerNotes Source # | |
Defined in Patat.Presentation.Comments | |
speakerNotesToText :: SpeakerNotes -> Text Source #
data SpeakerNotesHandle Source #
withSpeakerNotesHandle :: SpeakerNotesSettings -> (SpeakerNotesHandle -> IO a) -> IO a Source #
writeSpeakerNotes :: SpeakerNotesHandle -> EncodingFallback -> SpeakerNotes -> IO () Source #
parseSlideSettings :: Comment -> Either String PresentationSettings Source #