aeson-typescript-0.6.3.0: Generate TypeScript definition files from your ADTs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Aeson.TypeScript.LegalName

Description

This module defines functions which are useful for determining if a given name is a legal JavaScript name according to this post.

Synopsis

Documentation

checkIllegalNameChars :: NonEmpty Char -> Maybe (NonEmpty Char) Source #

The return type is the illegal characters that are in the name. If the input has no illegal characters, then you have Nothing.