A regular expression. Note that typst-hs does not use the same Regex engine as Typst. See issue #28.
Moduletypst-0.5.0.3Haskell2010
Typst.Types
- 24 types
- 5 classes
- 12 values
- Packagetypst-0.5.0.3
- Exports41
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceRegex.hs
A Typst value. More documentation can be found in the Foundations chapter of the Typst reference manual. A more concise (but somewhat outdated) summary can also be found in L. Mädje "Typst: a programmable markup language for typesetting", page 32-33.
Constructors
VNoneThe
nonevalue, indicates the absence of any other value.VAutoThe
autovalue, used to automatically set an appropriate value.VBoolean !BoolA
boolvalue.VInteger !IntegerAn
intvalue.VFloat !DoubleA
floatvalue.VRatio !RationalA
ratiovalue, a proportion of a certain whole, for example50%.VLength !LengthA
lengthor arelativevalue.VAlignment (Maybe Horiz) (Maybe Vert)An
alignmentvalue, indicating the alignment of some content along both the horizontal and vertical axes.VAngle !DoubleAn
anglevalue (expressed internally in degrees).VFraction !DoubleA
fractionvalue, defining the proportions of remaing space is to be distributed, e.g.2 fr.VColor !ColorA
colorvalue. Not all Typst color spaces are supported; onlyrgb,cmyk, andlumaare available. See issue #35.VSymbol !SymbolA
symbolvalue, representing a Unicode symbol.VString !TextA UTF-8 encoded text
string.VRegex !REA
regex(regular expression). See RE for details.VDateTime (Maybe Day) (Maybe DiffTime)A
datetimevalue, a date, a time, or a combination of both.VContent (Seq Content)A
contentvalue, see Content for more details.VArray (Vector Val)An
arrayvalue, for example(10, 20, 30).VDict (OMap Identifier Val)A
dictionaryvalue, for example(a:20, b:30).VTermItem (Seq Content) (Seq Content)VDirection DirectionA
directionto lay out content.VFunction (Maybe Identifier) (Map Identifier Val) FunctionA Typst function.
VArguments ArgumentsPositional and named function arguments
VLabel !TextA
labelto some element, for examplehello.VCounter !CounterVSelector !SelectorVModule Identifier (Map Identifier Val)VStylesVVersion [Integer]VType !ValType
Instances10Eq, Ord, Show, FromJSON, FromValue, Compare, …
Eq ValDefined in typst-0.5.0.3 · Typst.TypesOrd ValDefined in typst-0.5.0.3 · Typst.TypesShow ValDefined in typst-0.5.0.3 · Typst.TypesFromJSON ValDefined in typst-0.5.0.3 · Typst.TypesFromValue ValDefined in typst-0.5.0.3 · Typst.TypesCompare ValDefined in typst-0.5.0.3 · Typst.TypesFromVal ValDefined in typst-0.5.0.3 · Typst.TypesMultipliable ValDefined in typst-0.5.0.3 · Typst.TypesNegatable ValDefined in typst-0.5.0.3 · Typst.TypesSummable ValDefined in typst-0.5.0.3 · Typst.Types
A Typst type, see documentation for Val.
Instances17FromVal, …
FromVal IntegerDefined in typst-0.5.0.3 · Typst.TypesFromVal StringDefined in typst-0.5.0.3 · Typst.TypesFromVal RationalDefined in typst-0.5.0.3 · Typst.TypesFromVal BoolDefined in typst-0.5.0.3 · Typst.TypesFromVal DoubleDefined in typst-0.5.0.3 · Typst.TypesFromVal IntDefined in typst-0.5.0.3 · Typst.TypesFromVal TextDefined in typst-0.5.0.3 · Typst.TypesFromVal REDefined in typst-0.5.0.3 · Typst.TypesFromVal CounterDefined in typst-0.5.0.3 · Typst.TypesFromVal DirectionDefined in typst-0.5.0.3 · Typst.TypesFromVal FunctionDefined in typst-0.5.0.3 · Typst.TypesFromVal LengthDefined in typst-0.5.0.3 · Typst.TypesFromVal SelectorDefined in typst-0.5.0.3 · Typst.TypesFromVal ValDefined in typst-0.5.0.3 · Typst.TypesFromVal (Seq Content)Defined in typst-0.5.0.3 · Typst.TypesFromVal a => FromVal (Maybe a)Defined in typst-0.5.0.3 · Typst.TypesFromVal a => FromVal (Vector a)Defined in typst-0.5.0.3 · Typst.Types
Methods
maybeNegate :: a -> Maybe a
Methods
maybePlus :: a -> a -> Maybe amaybeMinus :: a -> a -> Maybe a
Methods
maybeTimes :: a -> a -> Maybe amaybeDividedBy :: a -> a -> Maybe a
Instances1Multipliable
Multipliable ValDefined in typst-0.5.0.3 · Typst.Types
Constructors
SymbolsymDefault :: !TextsymAccent :: !BoolsymVariants :: [(Set Text, Text)]
Instances5Eq, Ord, Show, IsString, FromVal
Constructors
Argumentspositional :: [Val]named :: OMap Identifier Val
Constructors
Instances3Eq, Ord, Show
Eq FlowDirectiveDefined in typst-0.5.0.3 · Typst.TypesOrd FlowDirectiveDefined in typst-0.5.0.3 · Typst.TypesShow FlowDirectiveDefined in typst-0.5.0.3 · Typst.Types
Constructors
OperationsloadBytes :: FilePath -> m ByteStringcurrentUTCTime :: m UTCTimelookupEnvVar :: String -> m (Maybe String)checkExistence :: FilePath -> m Bool
Special directories for storing user-specific application data, configuration, and cache files, as specified by the XDG Base Directory Specification.
Note: On Windows, XdgData and XdgConfig usually map to the same directory.
Constructors
XdgDataFor data files (e.g. images). It uses the
XDG_DATA_HOMEenvironment variable. On non-Windows systems, the default is~/.local/share. On Windows, the default is%APPDATA%(e.g.C:/Users/<user>/AppData/Roaming). Can be considered as the user-specific equivalent of/usr/share.XdgConfigFor configuration files. It uses the
XDG_CONFIG_HOMEenvironment variable. On non-Windows systems, the default is~/.config. On Windows, the default is%APPDATA%(e.g.C:/Users/<user>/AppData/Roaming). Can be considered as the user-specific equivalent of/etc.XdgCacheFor non-essential files (e.g. cache). It uses the
XDG_CACHE_HOMEenvironment variable. On non-Windows systems, the default is~/.cache. On Windows, the default is%LOCALAPPDATA%(e.g.C:/Users/<user>/AppData/Local). Can be considered as the user-specific equivalent of/var/cache.XdgStateFor data that should persist between (application) restarts, but that is not important or portable enough to the user that it should be stored in XdgData. It uses the
XDG_STATE_HOMEenvironment variable. On non-Windows sytems, the default is~/.local/state. On Windows, the default is%LOCALAPPDATA%(e.g.C:/Users/<user>/AppData/Local).
Instances6Bounded, Enum, Eq, Ord, Read, Show
Bounded XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.CommonEnum XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.CommonEq XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.CommonOrd XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.CommonRead XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.CommonShow XdgDirectoryDefined in directory-1.3.8.5 · System.Directory.Internal.Common
Constructors
Constructors
Constructors
Instances7Eq, Data, Ord, Show, IsString, Semigroup, …
Eq IdentifierDefined in typst-0.5.0.3 · Typst.SyntaxData IdentifierDefined in typst-0.5.0.3 · Typst.SyntaxOrd IdentifierDefined in typst-0.5.0.3 · Typst.SyntaxShow IdentifierDefined in typst-0.5.0.3 · Typst.SyntaxIsString IdentifierDefined in typst-0.5.0.3 · Typst.SyntaxSemigroup IdentifierDefined in typst-0.5.0.3 · Typst.SyntaxMonoid IdentifierDefined in typst-0.5.0.3 · Typst.Syntax
Instances7Monad, Functor, MonadFail, Applicative, Eq, Ord, …
Monad AttemptDefined in typst-0.5.0.3 · Typst.TypesFunctor AttemptDefined in typst-0.5.0.3 · Typst.TypesMonadFail AttemptDefined in typst-0.5.0.3 · Typst.TypesApplicative AttemptDefined in typst-0.5.0.3 · Typst.TypesEq a => Eq (Attempt a)Defined in typst-0.5.0.3 · Typst.TypesOrd a => Ord (Attempt a)Defined in typst-0.5.0.3 · Typst.TypesShow a => Show (Attempt a)Defined in typst-0.5.0.3 · Typst.Types