Module

Yoga.Format.Render

Package
purescript-yoga-format
Repository
rowtype-yoga/purescript-yoga-format

#RenderInput Source

class RenderInput :: SList -> Type -> Constraintclass RenderInput segments input  where

Typeclass dispatching between record and bare value input

Members

Instances

#RenderSingle Source

class RenderSingle :: SList -> Constraintclass RenderSingle segments  where

Render a single-var template with a bare value

Members

Instances

#RenderLitOnly Source

class RenderLitOnly :: SList -> Constraintclass RenderLitOnly segments  where

Render remaining segments that must all be literals

Members

Instances

#RenderSegments Source

class RenderSegments :: SList -> Row Type -> Constraintclass RenderSegments segments row  where

Render a parsed template's segments against a record

Members

Instances

#ResolveAndInterpolate Source

class ResolveAndInterpolate :: Symbol -> Row Type -> Constraintclass ResolveAndInterpolate path row  where

Resolve a possibly-dotted path against a record and interpolate

Members

Instances

#SplitOnFirstDot Source

class SplitOnFirstDot :: Symbol -> Symbol -> Symbol -> Boolean -> Symbol -> Symbol -> Constraintclass SplitOnFirstDot head tail acc hasDot field rest | head tail acc -> hasDot field rest

Split a symbol on the first dot

Instances

#ResolveAndInterpolateSplit Source

class ResolveAndInterpolateSplit :: Boolean -> Symbol -> Symbol -> Row Type -> Constraintclass ResolveAndInterpolateSplit hasDot field rest row  where

Dispatch based on whether there was a dot

Members

Instances