Safe Haskell | None |
---|---|
Language | Haskell2010 |
Patat.Presentation
Synopsis
- data PresentationSettings = PresentationSettings {
- psRows :: !(Maybe (FlexibleNum Int))
- psColumns :: !(Maybe (FlexibleNum Int))
- psMargins :: !(Maybe Margins)
- psWrap :: !(Maybe Bool)
- psTheme :: !(Maybe Theme)
- psIncrementalLists :: !(Maybe Bool)
- psAutoAdvanceDelay :: !(Maybe (FlexibleNum Int))
- psSlideLevel :: !(Maybe Int)
- psPandocExtensions :: !(Maybe ExtensionList)
- psImages :: !(Maybe ImageSettings)
- defaultPresentationSettings :: PresentationSettings
- data Presentation = Presentation {
- pFilePath :: !FilePath
- pTitle :: ![Inline]
- pAuthor :: ![Inline]
- pSettings :: !PresentationSettings
- pSlides :: [Slide]
- pActiveFragment :: !Index
- readPresentation :: FilePath -> IO (Either String Presentation)
- displayPresentation :: Maybe Handle -> Presentation -> IO Cleanup
- displayPresentationError :: Presentation -> String -> IO Cleanup
- dumpPresentation :: Presentation -> IO ()
- data PresentationCommand
- = Exit
- | Forward
- | Backward
- | SkipForward
- | SkipBackward
- | First
- | Last
- | Reload
- | Seek Int
- | UnknownCommand String
- readPresentationCommand :: Handle -> IO PresentationCommand
- data UpdatedPresentation
- updatePresentation :: PresentationCommand -> Presentation -> IO UpdatedPresentation
Documentation
data PresentationSettings Source #
These are patat-specific settings. That is where they differ from more general metadata (author, title...)
Constructors
PresentationSettings | |
Fields
|
Instances
Show PresentationSettings Source # | |
Defined in Patat.Presentation.Internal Methods showsPrec :: Int -> PresentationSettings -> ShowS show :: PresentationSettings -> String showList :: [PresentationSettings] -> ShowS | |
Semigroup PresentationSettings Source # | |
Defined in Patat.Presentation.Internal Methods (<>) :: PresentationSettings -> PresentationSettings -> PresentationSettings sconcat :: NonEmpty PresentationSettings -> PresentationSettings stimes :: Integral b => b -> PresentationSettings -> PresentationSettings | |
Monoid PresentationSettings Source # | |
Defined in Patat.Presentation.Internal | |
FromJSON PresentationSettings Source # | |
Defined in Patat.Presentation.Internal Methods parseJSON :: Value -> Parser PresentationSettings parseJSONList :: Value -> Parser [PresentationSettings] |
data Presentation Source #
Constructors
Presentation | |
Fields
|
Instances
Show Presentation Source # | |
Defined in Patat.Presentation.Internal Methods showsPrec :: Int -> Presentation -> ShowS show :: Presentation -> String showList :: [Presentation] -> ShowS |
readPresentation :: FilePath -> IO (Either String Presentation) Source #
displayPresentation :: Maybe Handle -> Presentation -> IO Cleanup Source #
displayPresentationError :: Presentation -> String -> IO Cleanup Source #
Displays an error in the place of the presentation. This is useful if we want to display an error but keep the presentation running.
dumpPresentation :: Presentation -> IO () Source #
data PresentationCommand Source #
Constructors
Exit | |
Forward | |
Backward | |
SkipForward | |
SkipBackward | |
First | |
Last | |
Reload | |
Seek Int | |
UnknownCommand String |
Instances
Eq PresentationCommand Source # | |
Defined in Patat.Presentation.Interactive Methods (==) :: PresentationCommand -> PresentationCommand -> Bool (/=) :: PresentationCommand -> PresentationCommand -> Bool | |
Show PresentationCommand Source # | |
Defined in Patat.Presentation.Interactive Methods showsPrec :: Int -> PresentationCommand -> ShowS show :: PresentationCommand -> String showList :: [PresentationCommand] -> ShowS |
readPresentationCommand :: Handle -> IO PresentationCommand Source #
data UpdatedPresentation Source #
Constructors
UpdatedPresentation !Presentation | |
ExitedPresentation | |
ErroredPresentation String |
Instances
Show UpdatedPresentation Source # | |
Defined in Patat.Presentation.Interactive Methods showsPrec :: Int -> UpdatedPresentation -> ShowS show :: UpdatedPresentation -> String showList :: [UpdatedPresentation] -> ShowS |