Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yamadapc/haskell-read-editor
Opens a temporary file on the system's EDITOR and returns the resulting edits
https://github.com/yamadapc/haskell-read-editor
Last synced: 2 months ago
JSON representation
Opens a temporary file on the system's EDITOR and returns the resulting edits
- Host: GitHub
- URL: https://github.com/yamadapc/haskell-read-editor
- Owner: yamadapc
- License: mit
- Created: 2015-10-27T09:11:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-02T17:57:38.000Z (almost 9 years ago)
- Last Synced: 2024-04-26T03:44:01.171Z (9 months ago)
- Language: Haskell
- Size: 10.7 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
haskell-read-editor
===================
[![Build Status](https://travis-ci.org/yamadapc/haskell-read-editor.svg?branch=master)](https://travis-ci.org/yamadapc/haskell-read-editor)
- - -
Opens a temporary file on the system's EDITOR and returns the resulting editsPublished to hackage as [`read-editor`](https://hackage.haskell.org/package/read-editor).
## Usage
```haskell
module Main whereimport 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
```haskell
module Main whereimport 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](https://travis-ci.org/yamadapc/haskell-read-editor)
to see more.## License
This code is licensed under the MIT license for Pedro Tacla Yamada. For more
information please refer to the [LICENSE](/LICENSE) file.## Donations
Would you like to buy me a beer? Send bitcoin to 3JjxJydvoJjTrhLL86LGMc8cNB16pTAF3y