You know when you run `git commit`, and an editor pops open so you can enter a commit message? This is a Haskell library that does that. https://hackage.haskell.org/package/editor-open

Peter Harpending 82aa7b570e Fix bug-reports url. %!s(int64=9) %!d(string=hai) anos
res e7ac130572 Add sample bug schemata. %!s(int64=9) %!d(string=hai) anos
skel 60c1b72d0d Portability is POSIX, not UNIX %!s(int64=9) %!d(string=hai) anos
src 394a7b4d2c Add a new function that uses conduit. %!s(int64=9) %!d(string=hai) anos
tests 4567115f9f Add a "unit test" %!s(int64=9) %!d(string=hai) anos
.gitignore d142c7c2bc Ignore the dist/ directory. %!s(int64=9) %!d(string=hai) anos
LICENSE 4503323689 Using the Apache license. %!s(int64=9) %!d(string=hai) anos
README.md dc0b60110b Add link to bitemyapp's guide. %!s(int64=9) %!d(string=hai) anos
Setup.hs 6d1a6ba41b Initial commit, run `cabal init`. %!s(int64=9) %!d(string=hai) anos
editor-open.cabal 82aa7b570e Fix bug-reports url. %!s(int64=9) %!d(string=hai) anos

README.md

editor-open

You know when you run git commit, and an editor pops open so you can enter a commit message? This is a Haskell library that does that.

This library isn't very portable. It relies on the $EDITOR environment variable. The concept only exists on *nix systems.

Installing

If you're using this library, I assume you're familiar with the basic infrastructure of Haskell programs. If not, check out Bitemyapp's guide.

Just add editor-open to the build-depends: field in your project's .cabal file.

Alternatively, you can just do a one-off installation with:

cabal install editor-open

Contact

  • Email: peter@harpending.org
  • IRC: pharpend on FreeNode and OFTC

Copyright

Copyright 2015 Peter Harpending

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.