packages feed

editor-open 0.4.0.1 → 0.4.0.2

raw patch · 2 files changed

+16/−66 lines, 2 filesdep −conduitdep −conduit-extradep −resourcetPVP ok

version bump matches the API change (PVP)

Dependencies removed: conduit, conduit-extra, resourcet

API changes (from Hackage documentation)

Files

editor-open.cabal view
@@ -1,5 +1,5 @@ name:                editor-open-version:             0.4.0.1+version:             0.4.0.2 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@@ -55,20 +55,20 @@   -- other-modules:          -- other-extensions:     -executable editor-open-test_yaml_file_conduit-  buildable: False-  hs-source-dirs:      tests/-  default-language:    Haskell2010-  build-depends:-     base ==4.8.*-   , bytestring-   , conduit >=1.2.3 && <1.3-   , conduit-extra-   , editor-open-   , resourcet-  main-is:             test_yaml_file_conduit.hs-  -- other-modules:       -  -- other-extensions:    +-- executable editor-open-test_yaml_file_conduit+--   buildable: False+--   hs-source-dirs:      tests/+--   default-language:    Haskell2010+--   build-depends:+--      base ==4.8.*+--    , bytestring+--    , conduit >=1.2.3 && <1.3+--    , conduit-extra+--    , editor-open+--    , resourcet+--   main-is:             test_yaml_file_conduit.hs+--   -- other-modules:       +--   -- other-extensions:      source-repository head    type: git@@ -77,4 +77,4 @@ source-repository this   type: git   location: https://github.com/pharpend/editor-open.git-  tag: 0.4.0.1+  tag: 0.4.0.2
− tests/test_yaml_file_conduit.hs
@@ -1,50 +0,0 @@--- 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.----- | --- Module      : Main--- Description : Test of editor-open--- Copyright   : Copyright 2015 Peter Harpending--- License     : Apache-2.0--- Maintainer  : Peter Harpending <peter@harpending.org>--- Stability   : experimental--- Portability : POSIX--- --module Main where--import Control.Monad.Trans.Resource (runResourceT)-import qualified Data.ByteString.Lazy as B-import Data.Conduit (connect, toConsumer, toProducer)-import Data.Conduit.Binary-       (sinkHandle, sinkLbs, sourceFile, sourceLbs)-import Paths_editor_open (getDataFileName)-import System.Exit (ExitCode(..))-import System.IO (stdout)-import Text.Editor (bracketConduit, plainTemplate)--main :: IO ()-main =-  do schemaFP <--       getDataFileName "res/bug-schema.yaml"-     (exitCode,result) <--       runResourceT-         (bracketConduit plainTemplate-                         (toProducer (sourceFile schemaFP))-                         (toConsumer sinkLbs))-     case exitCode of-       ExitSuccess -> connect (sourceLbs result) (sinkHandle stdout)-       ExitFailure i ->-         fail (mappend "Editor process failed with exit code " (show i))