yi-0.12.3: The Haskell-Scriptable Editor

LicenseGPL-2
Maintaineryi-devel@googlegroups.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010
Extensions
  • Cpp
  • TemplateHaskell
  • OverloadedStrings
  • DeriveDataTypeable
  • DeriveGeneric
  • GeneralizedNewtypeDeriving
  • NondecreasingIndentation

Yi.Mode.GHCi

Description

A mode for GHCi, implemented as tweaks on Interaction mode

Synopsis

Documentation

data GhciProcessName Source

The process name to use to spawn GHCi.

Constructors

GhciProcessName 

Fields

_ghciProcessName :: FilePath

Command to run when spawning GHCi.

_ghciProcessArgs :: [String]

Args to pass to the process.

Instances

Show GhciProcessName Source 
Generic GhciProcessName Source 
Binary GhciProcessName Source 
Default GhciProcessName Source

The process name defaults to ghci.

YiVariable GhciProcessName Source

Setting this is a bit like '(setq haskell-program-name foo)' in emacs' haskell-mode.

type Rep GhciProcessName Source 

mode :: Mode (Tree (Tok Token)) Source

Mode used for GHCi. Currently it just overrides KHome key to go just before the prompt through the use of homeKey.

homeKey :: BufferM () Source

The GHCi prompt always begins with ">"; this goes to just before it, or if one is already at the start of the prompt, goes to the beginning of the line. (If at the beginning of the line, this pushes you forward to it.)

spawnProcess Source

Arguments

:: FilePath

Command to use.

-> [String]

Process args.

-> YiM BufferRef

Reference to the spawned buffer.

Spawns an interactive process (Yi.Mode.Interactive) with GHCi mode over it.