packages feed

editor-open 0.1.0.1 → 0.1.1.0

raw patch · 2 files changed

+13/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Text.Editor: runUserEditorDWIMFile :: Template -> FilePath -> IO ByteString

Files

editor-open.cabal view
@@ -1,5 +1,5 @@ name:                editor-open-version:             0.1.0.1+version:             0.1.1.0 synopsis:            Open the user's $EDITOR for text input. description:   You know when you run @git commit@, and an editor pops open so you can enter a@@ -45,4 +45,4 @@ source-repository this   type: git   location: https://notabug.org/pharpend/editor-open.git-  tag: 0.1.0.1+  tag: 0.1.1.0
src/Text/Editor.hs view
@@ -78,6 +78,17 @@ runUserEditorDWIM templ initialContents = userEditorDefault _default_editor >>= \theEditor ->                                             runSpecificEditor theEditor templ initialContents +-- |This is the same as above, it just takes a file as an argument+-- instead of the ByteString+-- +-- @+-- runUserEditorDWIMFile templ fp = B.readFile fp >>=  runUserEditorDWIM templ+-- @+runUserEditorDWIMFile :: Template       -- ^Template for the file name+                      -> FilePath       -- ^File containing initial contents+                      -> IO ByteString  -- ^Resulting ByteString+runUserEditorDWIMFile templ fp = B.readFile fp >>=  runUserEditorDWIM templ+ -- |This is likely the simplest function here. It opens up the user's editor, -- and fetches a ByteString from it --