purescript-0.15.6: PureScript Programming Language Compiler
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.PureScript.CST.Utils

Synopsis

Documentation

newtype QualifiedProperName Source #

A newtype for a qualified proper name whose ProperNameType has not yet been determined. This is a workaround for Happy's limited support for polymorphism; it is used inside the parser to allow us to write just one parser for qualified proper names which can be used for all of the different ProperNameTypes (via a call to getQualifiedProperName).

newtype ProperName Source #

A newtype for a proper name whose ProperNameType has not yet been determined. This is a workaround for Happy's limited support for polymorphism; it is used inside the parser to allow us to write just one parser for proper names which can be used for all of the different ProperNameTypes (via a call to getProperName).

Constructors

ProperName 

Fields

newtype QualifiedOpName Source #

A newtype for a qualified operator name whose OpNameType has not yet been determined. This is a workaround for Happy's limited support for polymorphism; it is used inside the parser to allow us to write just one parser for qualified operator names which can be used for all of the different OpNameTypes (via a call to getQualifiedOpName).

Constructors

QualifiedOpName 

Fields

newtype OpName Source #

A newtype for a operator name whose OpNameType has not yet been determined. This is a workaround for Happy's limited support for polymorphism; it is used inside the parser to allow us to write just one parser for operator names which can be used for all of the different OpNameTypes (via a call to getOpName).

Constructors

OpName 

Fields

toName :: (Text -> a) -> SourceToken -> Parser (Name a) Source #

toConstraint :: forall a. Monoid a => Type a -> Parser (Constraint a) Source #

data TmpModuleDecl a Source #

Instances

Instances details
Show a => Show (TmpModuleDecl a) Source # 
Instance details

Defined in Language.PureScript.CST.Utils

isLeftFatArrow :: Text -> Bool Source #

This is to keep the Parser.y file ASCII, otherwise happy will break in non-unicode locales.

Related GHC issue: https://gitlab.haskell.org/ghc/ghc/issues/8167