yi-0.11.0: The Haskell-Scriptable Editor

Portabilityportable
Stabilityexperimental
Maintaineryi-devel@googlegroups.com
Safe HaskellNone

Yi.Mode.Haskell

Contents

Description

Collection of Modes for working with Haskell.

Synopsis

Modes

haskellAbstract :: Mode (tree TT)Source

General ‘template’ for actual Haskell modes.

It applies over extensions = [hs, x, hsc, hsinc] which may be a little questionable but for now Yi is mostly used by Haskell hackers so it should be fine, at least for now.

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

Clever haskell mode, using the paren-matching syntax.

preciseMode :: Mode (Tree TT)Source

Experimental Haskell mode, using a rather precise parser for the syntax.

IO-level operations

ghciGet :: YiM BufferRefSource

Return GHCi's buffer; create it if necessary. Show it in another window.

ghciSend :: String -> YiM ()Source

Send a command to GHCi

ghciLoadBuffer :: YiM ()Source

Load current buffer in GHCi