Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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)
- psBreadcrumbs :: !(Maybe Bool)
- psEval :: !(Maybe EvalSettingsMap)
- psSlideNumber :: !(Maybe Bool)
- defaultPresentationSettings :: PresentationSettings
- data Presentation = Presentation {
- pFilePath :: !FilePath
- pTitle :: ![Inline]
- pAuthor :: ![Inline]
- pSettings :: !PresentationSettings
- pSlides :: [Slide]
- pBreadcrumbs :: [Breadcrumbs]
- pActiveFragment :: !Index
- readPresentation :: FilePath -> IO (Either String Presentation)
- data Size
- getDisplaySize :: Presentation -> IO Size
- data Display
- displayPresentation :: Size -> Presentation -> Display
- displayPresentationError :: Size -> Presentation -> String -> Doc
- 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...)
PresentationSettings | |
|
Instances
FromJSON PresentationSettings Source # | |
Defined in Patat.Presentation.Internal parseJSON :: Value -> Parser PresentationSettings # parseJSONList :: Value -> Parser [PresentationSettings] # | |
Monoid PresentationSettings Source # | |
Semigroup PresentationSettings Source # | |
Defined in Patat.Presentation.Internal | |
Show PresentationSettings Source # | |
Defined in Patat.Presentation.Internal showsPrec :: Int -> PresentationSettings -> ShowS # show :: PresentationSettings -> String # showList :: [PresentationSettings] -> ShowS # |
data Presentation Source #
Presentation | |
|
Instances
Show Presentation Source # | |
Defined in Patat.Presentation.Internal showsPrec :: Int -> Presentation -> ShowS # show :: Presentation -> String # showList :: [Presentation] -> ShowS # |
readPresentation :: FilePath -> IO (Either String Presentation) Source #
getDisplaySize :: Presentation -> IO Size Source #
displayPresentation :: Size -> Presentation -> Display Source #
displayPresentationError :: Size -> Presentation -> String -> Doc 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 #
Instances
Show PresentationCommand Source # | |
Defined in Patat.Presentation.Interactive showsPrec :: Int -> PresentationCommand -> ShowS # show :: PresentationCommand -> String # showList :: [PresentationCommand] -> ShowS # | |
Eq PresentationCommand Source # | |
Defined in Patat.Presentation.Interactive (==) :: PresentationCommand -> PresentationCommand -> Bool # (/=) :: PresentationCommand -> PresentationCommand -> Bool # |
data UpdatedPresentation Source #
Instances
Show UpdatedPresentation Source # | |
Defined in Patat.Presentation.Interactive showsPrec :: Int -> UpdatedPresentation -> ShowS # show :: UpdatedPresentation -> String # showList :: [UpdatedPresentation] -> ShowS # |