packages feed

Shellac-compatline-0.9.9: Shellac-compatline.cabal

Name:           Shellac-compatline
Version:        0.9.9
Cabal-version:  >= 1.22
Build-Type:     Simple
Author:         Robert Dockins
License:        BSD3
License-File:   LICENSE
Maintainer:     robdockins AT fastmail DOT fm
Category:       User Interfaces
Stability:      Beta
Homepage:       http://rwd.rdockins.name/shellac/home/
Synopsis:       "compatline" backend module for Shellac
Description:
   This package provides a Shellac backend which acts a thin interface
   for the Shellac-readline or Shellac-editline packages, depending
   on avaliability.  Note that this package may be compiled against
   readline, which is licended under the GPL.

Flag UseEditline
  Description: Use the Shellac-editline pacakge
  Default: False

Flag UseReadline
  Description: Use the Shellac-readline package
  Default: True

Library
  Hs-Source-Dirs:
    src
  Build-Depends:
     base == 4.*,
     Shellac
  if(flag(UseEditline))
    Build-Depends: Shellac-editline
    CPP-Options: -DUSE_EDITLINE
  if(!flag(UseEditline) && flag(UseReadline))
    Build-Depends: Shellac-readline
    CPP-Options: -DUSE_READLINE
  if(!flag(UseEditline) && !(flag(UseReadline)))
    Build-Depends: DependencyResolutionFailure > 999
  Exposed-modules:
     System.Console.Shell.Backend.Compatline

  Default-Language: Haskell2010
  Default-Extensions: CPP