Commit 5b27278d authored by judah's avatar judah Committed by GitHub
Browse files

Merge pull request #62 from hvr/pr/simple-buildtype

Change to simple build-type & minor ver increment
parents d6b5bbba d98ba271
import Distribution.System
import Distribution.PackageDescription
import Distribution.Simple
import Distribution.Simple.Setup
import Control.Monad(when)
main :: IO ()
main = defaultMainWithHooks myHooks
myHooks :: UserHooks
| buildOS == Windows = simpleUserHooks
| otherwise = simpleUserHooks {
confHook = \genericDescript flags -> do
warnIfNotTerminfo flags
confHook simpleUserHooks genericDescript flags
warnIfNotTerminfo flags = when (not (hasFlagSet flags (FlagName "terminfo")))
$ mapM_ putStrLn
[ "*** Warning: running on POSIX but not building the terminfo backend. ***"
, "You may need to install the terminfo package manually, e.g. with"
, "\"cabal install terminfo\"; or, use \"-fterminfo\" when configuring or"
, "installing this package."
hasFlagSet :: ConfigFlags -> FlagName -> Bool
hasFlagSet cflags flag = Just True == lookup flag (configConfigurationsFlags cflags)
main = defaultMain
Name: haskeline
Cabal-Version: >=1.10
Category: User Interfaces
License: BSD3
License-File: LICENSE
......@@ -19,7 +19,7 @@ Description:
Stability: Stable
Build-Type: Custom
Build-Type: Simple
extra-source-files: examples/Test.hs Changelog includes/*.h
source-repository head
......@@ -37,6 +37,7 @@ source-repository head
flag terminfo
Description: Use the terminfo package for POSIX consoles.
Default: True
Manual: True
-- We require ghc>=7.4.1 (base>=4.5) to use the base library encodings, even
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment