Module

Language.PureScript.Names

Package
purescript-language-purescript
Repository
JordanMartinez/purescript-language-purescript

#InternalIdentData Source

data InternalIdentData

This type is meant to be extended with any new uses for idents that come along. Adding constructors to this type is cheaper than adding them to Ident because functions that match on Ident can ignore all InternalIdents with a single pattern, and thus don't have to change if a new InternalIdentData constructor is created.

Constructors

Instances

#Ident Source

data Ident

Names for value identifiers

Constructors

Instances

#fromIdent Source

#OpName Source

newtype OpName :: OpNameType -> Typenewtype OpName a

Operator alias names.

Constructors

Instances

#fromOpName Source

fromOpName :: forall a. OpName a -> Json

#toOpName Source

toOpName :: forall a. Json -> Either DecodeError (OpName a)

#OpNameType Source

#ValueOpName Source

#TypeOpName Source

#AnyOpName Source

#ProperName Source

newtype ProperName :: ProperNameType -> Typenewtype ProperName a

Proper names, i.e. capitalized names for e.g. module names, type/data constructors.

Constructors

Instances

#fromProperName Source

fromProperName :: forall a. ProperName a -> Json

#toProperName Source

#ProperNameType Source

#fromQualifiedBy Source

fromQualifiedBy :: QualifiedBy -> Json

Note: this instance isn't defined in the PureScript compiler. as it appears within the instance of Qualified a.

#toQualifiedBy Source

toQualifiedBy :: Json -> Either DecodeError QualifiedBy

Note: this instance isn't defined in the PureScript compiler. as it appears within the instance of Qualified a.

#fromQualified Source

fromQualified :: forall a. (a -> Json) -> Qualified a -> Json

#toQualified Source