hsdev-0.2.5.1: Haskell development library

Safe HaskellNone
LanguageHaskell98

HsDev.Tools.Base

Contents

Synopsis

Documentation

runTool :: FilePath -> [String] -> String -> IO String Source #

Run tool, throwing HsDevError on fail

runTool_ :: FilePath -> [String] -> IO String Source #

Run tool with not stdin

runWait :: FilePath -> [String] -> String -> IO Result Source #

Run command and wait for result

runWait_ :: FilePath -> [String] -> IO Result Source #

Run command with no input

tool_ :: FilePath -> [String] -> ToolM String Source #

Tool with no input

Read parse utils

type ReadM a = StateT String [] a Source #

readParse :: Read a => ReadM a Source #

Parse readable value

parseReads :: String -> ReadM a -> [a] Source #

Run parser

parseRead :: String -> ReadM a -> Maybe a Source #

Run parser and select first result