Module
Type.Data.Symbol
- Package
- purescript-typelevel-prelude
- Repository
- purescript/purescript-typelevel-prelude
Re-exports from Data.Symbol
#IsSymbol Source
class IsSymbol :: Symbol -> Constraint
class IsSymbol (sym :: Symbol) where
A class for known symbols
Members
reflectSymbol :: Proxy sym -> String
#reifySymbol Source
reifySymbol :: forall r. String -> (forall sym. IsSymbol sym => Proxy sym -> r) -> r
Re-exports from Prim.Symbol
#Append
#Compare
#Cons
class Cons (head :: Symbol) (tail :: Symbol) (symbol :: Symbol) | head tail -> symbol, symbol -> head tail
Compiler solved type class for either splitting up a symbol into its head and tail or for combining a head and tail into a new symbol. Requires the head to be a single character and the combined string cannot be empty.