Safe Haskell | None |
---|---|
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)
- defaultPresentationSettings :: PresentationSettings
- data Presentation = Presentation {}
- 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...)
PresentationSettings | |
|
Instances
Show PresentationSettings Source # | |
Defined in Patat.Presentation.Internal showsPrec :: Int -> PresentationSettings -> ShowS # show :: PresentationSettings -> String # showList :: [PresentationSettings] -> ShowS # | |
Semigroup PresentationSettings Source # | |
Defined in Patat.Presentation.Internal | |
Monoid PresentationSettings Source # | |
FromJSON PresentationSettings Source # | |
Defined in Patat.Presentation.Internal parseJSON :: Value -> Parser PresentationSettings # parseJSONList :: Value -> Parser [PresentationSettings] # |
data Presentation Source #
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 #
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 #
Instances
Eq PresentationCommand Source # | |
Defined in Patat.Presentation.Interactive (==) :: PresentationCommand -> PresentationCommand -> Bool # (/=) :: PresentationCommand -> PresentationCommand -> Bool # | |
Show PresentationCommand Source # | |
Defined in Patat.Presentation.Interactive showsPrec :: Int -> PresentationCommand -> ShowS # show :: PresentationCommand -> String # showList :: [PresentationCommand] -> ShowS # |
data UpdatedPresentation Source #
Instances
Show UpdatedPresentation Source # | |
Defined in Patat.Presentation.Interactive showsPrec :: Int -> UpdatedPresentation -> ShowS # show :: UpdatedPresentation -> String # showList :: [UpdatedPresentation] -> ShowS # |