Module

PuchiTomato

Package
purescript-puchitomato
Repository
justinwoo/purescript-puchitomato

#StringLiteral Source

data StringLiteral (sym :: Symbol)

A string literal type, where the runtime representation is a String that is the same as the Symbol parameter Equivalent to reflectSymbol (SProxy :: SProxy sym)

Instances

#mkStringLiteral Source

mkStringLiteral :: forall sym. IsSymbol sym => SProxy sym -> StringLiteral sym

Make a String Literal by using a SProxy

#extractString Source

extractString :: forall sym. StringLiteral sym -> String

Extract the string value out of the String Literal type

#parseStringLiteral Source

parseStringLiteral :: forall sym. IsSymbol sym => String -> Maybe (StringLiteral sym)
Modules
PuchiTomato