name:                read-editor
version:             0.1.0.2
synopsis:            Opens a temporary file on the system's EDITOR and returns the resulting edits
description:         See <https://github.com/yamadapc/haskell-read-editor> for more information
homepage:            https://github.com/yamadapc/haskell-read-editor
license:             MIT
license-file:        LICENSE
author:              Pedro Tacla Yamada
maintainer:          tacla.yamada@gmail.com
copyright:           Copyright (c) 2015 Pedro Tacla Yamada
category:            System
build-type:          Simple
cabal-version:       >=1.10

source-repository this
  type:     git
  location: git://github.com/yamadapc/haskell-read-editor
  tag:      1.6.1

flag examples
  description: Build the examples
  default:     False

library
  exposed-modules:     System.ReadEditor
  build-depends:       base >=4.6 && <5
                     , directory >= 1.2.2.0
                     , process >= 1.2.3.0
  hs-source-dirs:      src
  default-language:    Haskell2010



executable example
  main-is:             Example.hs
  default-language:    Haskell2010
  if !flag(examples)
    buildable: False
  else
    buildable: True
    build-depends: base >=4 && <5
                 , read-editor
    hs-source-dirs:    lib
                     , examples

executable example-with
  main-is:             ExampleWith.hs
  default-language:    Haskell2010
  if !flag(examples)
    buildable: False
  else
    buildable: True
    build-depends: base >=4 && <5
                 , read-editor
    hs-source-dirs:    lib
                     , examples