Module
PscIde.Command
- Package
- purescript-psc-ide
- Repository
- kRITZCREEK/purescript-psc-ide
#Filter Source
data Filter
Constructors
ExactFilter String
PrefixFilter String
ModuleFilter (Array String)
DependencyFilter (Array String)
NamespaceFilter (Array Namespace)
DeclarationFilter (Array DeclarationType)
Instances
#filterWrapper Source
filterWrapper :: forall a. EncodeJson a => String -> a -> Json
#jsonSingletonObject' Source
jsonSingletonObject' :: forall a. EncodeJson a => String -> a -> Json
#CompletionOptions Source
newtype CompletionOptions
Constructors
CompletionOptions { groupReexports :: Boolean, maxResults :: Maybe Int }
Instances
#Command Source
data Command
Constructors
Cwd
Ls ListType
Quit
Reset
Load (Array String) (Array String)
Complete (Array Filter) (Maybe Matcher) (Maybe String) CompletionOptions
Pursuit PursuitType String
Type String (Array Filter) (Maybe String)
AddClause String Boolean
CaseSplit String Int Int Boolean String
ImportCmd FileName (Maybe FileName) (Array Filter) ImportCommand
RebuildCmd String (Maybe FileName) (Maybe (Array CodegenTarget))
Usages String Namespace String
Instances
#ImportCommand Source
#commandWrapper Source
commandWrapper :: forall a. EncodeJson a => String -> a -> Json
#encodeMaybeNull Source
encodeMaybeNull :: forall a. EncodeJson a => Maybe a -> Json
#GenCompletion Source
type GenCompletion :: Row Type -> Type
type GenCompletion a = { identifier :: String, module' :: String, type' :: String | a }
#TypePosition Source
newtype TypePosition
Constructors
TypePosition { end :: Position, name :: String, start :: Position }
Instances
#TypeInfo Source
newtype TypeInfo
Constructors
TypeInfo (GenCompletion (declarationType :: Maybe DeclarationType, definedAt :: Maybe TypePosition, documentation :: Maybe String, expandedType :: Maybe String, exportedFrom :: Array String))
Instances
#PursuitCompletion Source
newtype PursuitCompletion
Constructors
PursuitCompletion { identifier :: String, module' :: String, package :: String, text :: String, type' :: Maybe String }
Instances
#ImportList Source
newtype ImportList
Constructors
ImportList { imports :: Array Import, moduleName :: Maybe String }
Instances
#Import Source
#RangePosition Source
type RangePosition = { endColumn :: Int, endLine :: Int, startColumn :: Int, startLine :: Int }
#RebuildError Source
newtype RebuildError
Constructors
RebuildError { errorCode :: String, errorLink :: String, filename :: Maybe String, message :: String, moduleName :: Maybe String, position :: Maybe RangePosition, pursIde :: Maybe PursIdeInfo, suggestion :: Maybe PscSuggestion }
Instances
#PscSuggestion Source
newtype PscSuggestion
Constructors
PscSuggestion { replaceRange :: Maybe RangePosition, replacement :: String }
#RebuildResult Source
#ImportResult Source
#unwrapResponse Source
unwrapResponse :: forall a b. DecodeJson a => DecodeJson b => String -> Either String (Either a b)