-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Opens a temporary file on the system's EDITOR and returns the resulting edits
--   
--   See <a>https://github.com/yamadapc/haskell-read-editor</a> for more
--   information
@package read-editor
@version 0.1.0.2

module System.ReadEditor

-- | Opens a file in the sytem's editor and returns it's contents after
--   it's saved.
readEditor :: IO String

-- | Opens a file, fills it some content and returns it's contents after
--   it's saved.
readEditorWith :: String -> IO String

-- | Opens a file in the sytem's editor, waits until it's closed.
openEditor :: FilePath -> IO ()

-- | A version of <a>openEditor</a> which takes the fallback prompt
--   question.
openEditorWithPrompt :: String -> FilePath -> IO ()

-- | Prompts for a line and returns it
prompt :: String -> IO String

-- | Executes a function with an open temporary file Handle.
withSystemTempFile :: String -> (FilePath -> Handle -> IO a) -> IO a
