purescript-0.3.6.1: PureScript Programming Language Compiler

Safe HaskellNone

Language.PureScript.Pretty.Common

Description

Common pretty-printing utility functions

Synopsis

Documentation

identToJs :: Ident -> StringSource

Convert an Ident into a valid Javascript identifier:

  • Alphanumeric characters are kept unmodified
  • Symbols are encoded as a dollar symbol ($) followed by their ordinal value

parens :: String -> StringSource

Wrap a string in parentheses