Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- readEditor :: IO String
- readEditorWith :: String -> IO String
- openEditor :: FilePath -> IO ()
- openEditorWithPrompt :: String -> FilePath -> IO ()
- prompt :: String -> IO String
- withSystemTempFile :: String -> (FilePath -> Handle -> IO a) -> IO a
Main exports
readEditor :: IO String Source #
Opens a file in the sytem's editor and returns it's contents after it's saved.
readEditorWith :: String -> IO String Source #
Opens a file, fills it some content 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.