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

Language.PureScript.CST.Utils

Synopsis

Documentation

newtype QualifiedProperName #

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 #

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 #

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 #

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

unexpectedToks :: (a -> TokenRange) -> ([SourceToken] -> b) -> ParserErrorType -> a -> Parser b #

internalError :: String -> a #

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

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

data TmpModuleDecl a #

Instances

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

Defined in Language.PureScript.CST.Utils

Methods

showsPrec :: Int -> TmpModuleDecl a -> ShowS #

show :: TmpModuleDecl a -> String #

showList :: [TmpModuleDecl a] -> ShowS #

isLeftFatArrow :: Text -> Bool #

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