Language.PureScript.Ide.Util

purescript-0.15.15: PureScript Programming Language Compiler

Safe Haskell | None
Language | Haskell2010

Language.PureScript.Ide.Util

Description

Generally useful functions

# Documentation

identifierFromIdeDeclaration :: IdeDeclaration -> Text #

unwrapMatch :: Match a -> a #

namespaceForDeclaration :: IdeDeclaration -> IdeNamespace #

encodeT :: ToJSON a => a -> Text #

decodeT :: FromJSON a => Text -> Either Text a #

discardAnn :: IdeDeclarationAnn -> IdeDeclaration #

withEmptyAnn :: IdeDeclaration -> IdeDeclarationAnn #

valueOperatorAliasT :: Qualified (Either Ident (ProperName 'ConstructorName)) -> Text #

typeOperatorAliasT :: Qualified (ProperName 'TypeName) -> Text #

properNameT :: forall r (a :: ProperNameType). Getting r (ProperName a) Text #

identT :: Getting r Ident Text #

opNameT :: forall r (a :: OpNameType). Getting r (OpName a) Text #

ideReadFile :: (MonadIO m, MonadError IdeError m) => FilePath -> m (FilePath, Text) #

module Language.PureScript.Ide.Logging