ihaskell-0.11.0.0: A Haskell backend kernel for the Jupyter project.
Safe HaskellSafe-Inferred
LanguageHaskell2010

IHaskell.Eval.Completion

Description

This has a limited amount of context sensitivity. It distinguishes between four contexts at the moment: - import statements (completed using modules) - identifiers (completed using in scope values) - extensions via :ext (completed using GHC extensions) - qualified identifiers (completed using in-scope values)

Synopsis

Documentation

completionTarget :: String -> Int -> [String] Source #

Get the word under a given cursor location.

completionType Source #

Arguments

:: String

The line on which the completion is being done.

-> Int

Location of the cursor in the line.

-> [String]

The identifier being completed (pieces separated by dots).

-> CompletionType 

Get which type of completion this is from the surrounding context.