haskell-read-editor- Opens a temporary file on the system's EDITOR and returns the resulting edits

Safe HaskellSafe




Main exports

readEditor :: IO String Source

Opens a file in the sytem's editor and returns it's contents after it's saved.

openEditor :: FilePath -> IO () Source

Opens a file in the sytem's editor, waits until it's closed.

openEditorWithPrompt :: String -> FilePath -> IO () Source

A version of openEditor which takes the fallback prompt question.


prompt :: String -> IO String Source

Prompts for a line and returns it

withSystemTempFile :: String -> (FilePath -> Handle -> IO a) -> IO a Source

Executes a function with an open temporary file Handle.