Skip to content

yamadapc/haskell-read-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haskell-read-editor

Build Status


Opens a temporary file on the system's EDITOR and returns the resulting edits

Published to hackage as read-editor.

Usage

module Main where

import System.ReadEditor

main :: IO ()
main = do
    putStrLn ">>> Opening editor for you to write me some content"
    content <- readEditor
    putStrLn ">>> You wrote:"
    putStrLn content

Reading edits of existing content

module Main where

import System.ReadEditor

main :: IO ()
main = do
    putStrLn ">>> Opening editor for you to write me some content"
    content <- readEditorWith "Some stuff that's already here"
    putStrLn ">>> You wrote:"
    putStrLn content

Support through CI

Travis-CI is building this package with GHC versions 7.6, 7.8 and 7.10. If the build status is green, they should all be supported. Check the project page to see more.

License

This code is licensed under the MIT license for Pedro Tacla Yamada. For more information please refer to the LICENSE file.

Donations

Would you like to buy me a beer? Send bitcoin to 3JjxJydvoJjTrhLL86LGMc8cNB16pTAF3y

About

Opens a temporary file on the system's EDITOR and returns the resulting edits

Resources

License

Stars

Watchers

Forks

Packages

No packages published