ihaskell-0.4.3.0: A Haskell backend kernel for the IPython project.

Safe HaskellNone

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.

completionTypeSource

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.