yi-core-0.19.4: Yi editor core library

License | GPL-2
Maintainer | yi-devel@googlegroups.com
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell2010

Extensions

- OverloadedStrings
- DeriveDataTypeable
- GeneralizedNewtypeDeriving
- TypeOperators
- ExplicitNamespaces

Yi.Command

Description

Various high-level functions to further classify.

Synopsis

- changeBufferNameE :: YiM ()
- shellCommandE :: YiM ()
- shellCommandV :: Text -> YiM ()
- newtype CabalBuffer = CabalBuffer {
  - cabalBuffer :: Maybe BufferRef
  }
- cabalConfigureE :: CommandArguments -> YiM ()
- configureExit :: Either SomeException ExitCode -> YiM ()
- reloadProjectE :: String -> YiM ()
- buildRun :: Text -> [Text] -> (Either SomeException ExitCode -> YiM x) -> YiM ()
- interactiveRun :: Text -> [Text] -> (Either SomeException ExitCode -> YiM x) -> YiM ()
- selectRunner :: Text -> Text -> [Text] -> (Either SomeException ExitCode -> YiM x) -> YiM ()
- makeBuild :: CommandArguments -> YiM ()
- cabalRun :: Text -> (Either SomeException ExitCode -> YiM x) -> CommandArguments -> YiM ()
- makeRun :: (Either SomeException ExitCode -> YiM x) -> CommandArguments -> YiM ()
- cabalBuildE :: CommandArguments -> YiM ()
- makeBuildE :: CommandArguments -> YiM ()
- shell :: YiM BufferRef
- searchSources :: (String ::: RegexTag) -> YiM ()
- grepFind :: (String ::: FilePatternTag) -> (String ::: RegexTag) -> YiM ()
- stackCommandE :: Text -> CommandArguments -> YiM ()
- stackRun :: Text -> (Either SomeException ExitCode -> YiM x) -> CommandArguments -> YiM ()

# Documentation

changeBufferNameE :: YiM () Source #

Changing the buffer name quite useful if you have several the same. This also breaks the relation with the file.

shellCommandE :: YiM () Source #

shell-command with argument prompt

shellCommandV :: Text -> YiM () Source #

shell-command with a known argument

newtype CabalBuffer Source #

Constructors

CabalBuffer |

Fields

- cabalBuffer :: Maybe BufferRef

#### Instances

Instances details

Binary CabalBuffer Source # |
Instance details Defined in Yi.Command Methods put :: CabalBuffer -> Put Source # get :: Get CabalBuffer Source # putList :: [CabalBuffer] -> Put Source #
Default CabalBuffer Source # |
Instance details Defined in Yi.Command Methods def :: CabalBuffer Source #
YiVariable CabalBuffer Source # |
Instance details Defined in Yi.Command

cabalConfigureE :: CommandArguments -> YiM () Source #

cabal-configure

configureExit :: Either SomeException ExitCode -> YiM () Source #

reloadProjectE :: String -> YiM () Source #

buildRun :: Text -> [Text] -> (Either SomeException ExitCode -> YiM x) -> YiM () Source #

Run the given commands with args and pipe the output into the build buffer, which is shown in an other window.

interactiveRun :: Text -> [Text] -> (Either SomeException ExitCode -> YiM x) -> YiM () Source #

Run the given command with args in interactive mode.

selectRunner :: Text -> Text -> [Text] -> (Either SomeException ExitCode -> YiM x) -> YiM () Source #

Select `buildRun` or `interactiveRun` based on stack or cabal command name

makeBuild :: CommandArguments -> YiM () Source #

cabalRun :: Text -> (Either SomeException ExitCode -> YiM x) -> CommandArguments -> YiM () Source #

makeRun :: (Either SomeException ExitCode -> YiM x) -> CommandArguments -> YiM () Source #

cabalBuildE :: CommandArguments -> YiM () Source #

cabal-build

makeBuildE :: CommandArguments -> YiM () Source #

shell :: YiM BufferRef Source #

searchSources :: (String ::: RegexTag) -> YiM () Source #

Search the source files in the project.

grepFind :: (String ::: FilePatternTag) -> (String ::: RegexTag) -> YiM () Source #

Perform a find+grep operation

stackCommandE :: Text -> CommandArguments -> YiM () Source #

stack-build

stackRun :: Text -> (Either SomeException ExitCode -> YiM x) -> CommandArguments -> YiM () Source #