Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class FromVal a where Source #
Instances
FromVal Rational Source # | |
FromVal Text Source # | |
FromVal RE Source # | |
FromVal Counter Source # | |
FromVal Direction Source # | |
FromVal Function Source # | |
FromVal Length Source # | |
FromVal Selector Source # | |
FromVal Val Source # | |
FromVal String Source # | |
FromVal Integer Source # | |
FromVal Bool Source # | |
FromVal Double Source # | |
FromVal Int Source # | |
FromVal (Seq Content) Source # | |
FromVal a => FromVal (Vector a) Source # | |
FromVal a => FromVal (Maybe a) Source # | |
class Multipliable a where Source #
maybeTimes :: a -> a -> Maybe a Source #
maybeDividedBy :: a -> a -> Maybe a Source #
Instances
Multipliable Val Source # | |
Defined in Typst.Types |
Symbol | |
|
Txt !Text | |
Lab !Text | |
Elt | |
|
Arguments | |
|
getNamedArg :: (MonadFail m, MonadPlus m, FromVal a) => Identifier -> Arguments -> m a Source #
data FlowDirective Source #
Instances
Show FlowDirective Source # | |
Defined in Typst.Types showsPrec :: Int -> FlowDirective -> ShowS # show :: FlowDirective -> String # showList :: [FlowDirective] -> ShowS # | |
Eq FlowDirective Source # | |
Defined in Typst.Types (==) :: FlowDirective -> FlowDirective -> Bool # (/=) :: FlowDirective -> FlowDirective -> Bool # | |
Ord FlowDirective Source # | |
Defined in Typst.Types compare :: FlowDirective -> FlowDirective -> Ordering # (<) :: FlowDirective -> FlowDirective -> Bool # (<=) :: FlowDirective -> FlowDirective -> Bool # (>) :: FlowDirective -> FlowDirective -> Bool # (>=) :: FlowDirective -> FlowDirective -> Bool # max :: FlowDirective -> FlowDirective -> FlowDirective # min :: FlowDirective -> FlowDirective -> FlowDirective # |
EvalState | |
|
emptyEvalState :: EvalState m Source #
newtype Identifier Source #
Instances
lookupIdentifier :: Monad m => Identifier -> MP m Val Source #