yi-0.11.0: src/library/Yi/Keymap/Vim/Ex/Commands/Make.hs
{-# OPTIONS_HADDOCK show-extensions #-}
-- |
-- Module : Yi.Keymap.Vim.Ex.Commands.Make
-- License : GPL-2
-- Maintainer : yi-devel@googlegroups.com
-- Stability : experimental
-- Portability : portable
module Yi.Keymap.Vim.Ex.Commands.Make (parse) where
import Control.Applicative
import qualified Data.Text as T
import qualified Text.ParserCombinators.Parsec as P
import Yi.Command
import Yi.Keymap
import Yi.Keymap.Vim.Common
import qualified Yi.Keymap.Vim.Ex.Commands.Common as Common
import Yi.Keymap.Vim.Ex.Types
import Yi.MiniBuffer
parse :: EventString -> Maybe ExCommand
parse = Common.parse $ do
args <- P.string "make" *> Common.commandArgs
return $ Common.impureExCommand {
cmdShow = T.pack "make"
, cmdAction = YiA $ makeBuildE $ CommandArguments args
}