File tree 2 files changed +4
-31
lines changed
2 files changed +4
-31
lines changed Original file line number Diff line number Diff line change 1
- import Distribution.System
2
- import Distribution.PackageDescription
3
1
import Distribution.Simple
4
- import Distribution.Simple.Setup
5
-
6
- import Control.Monad (when )
7
-
8
- main :: IO ()
9
- main = defaultMainWithHooks myHooks
10
-
11
- myHooks :: UserHooks
12
- myHooks
13
- | buildOS == Windows = simpleUserHooks
14
- | otherwise = simpleUserHooks {
15
- confHook = \ genericDescript flags -> do
16
- warnIfNotTerminfo flags
17
- confHook simpleUserHooks genericDescript flags
18
- }
19
-
20
- warnIfNotTerminfo flags = when (not (hasFlagSet flags (FlagName " terminfo" )))
21
- $ mapM_ putStrLn
22
- [ " *** Warning: running on POSIX but not building the terminfo backend. ***"
23
- , " You may need to install the terminfo package manually, e.g. with"
24
- , " \" cabal install terminfo\" ; or, use \" -fterminfo\" when configuring or"
25
- , " installing this package."
26
- ," "
27
- ]
28
-
29
- hasFlagSet :: ConfigFlags -> FlagName -> Bool
30
- hasFlagSet cflags flag = Just True == lookup flag (configConfigurationsFlags cflags)
2
+ main = defaultMain
Original file line number Diff line number Diff line change 1
1
Name : haskeline
2
2
Cabal-Version : >= 1.10
3
- Version : 0.7.3.1
3
+ Version : 0.7.4.0
4
4
Category : User Interfaces
5
5
License : BSD3
6
6
License-File : LICENSE
@@ -19,7 +19,7 @@ Description:
19
19
Homepage : http://trac.haskell.org/haskeline
20
20
Bug-Reports : https://github.com/judah/haskeline/issues
21
21
Stability : Stable
22
- Build-Type : Custom
22
+ Build-Type : Simple
23
23
extra-source-files : examples/Test.hs Changelog includes/*.h
24
24
25
25
source-repository head
@@ -37,6 +37,7 @@ source-repository head
37
37
flag terminfo
38
38
Description : Use the terminfo package for POSIX consoles.
39
39
Default : True
40
+ Manual : True
40
41
41
42
Library
42
43
-- We require ghc>=7.4.1 (base>=4.5) to use the base library encodings, even
You can’t perform that action at this time.
0 commit comments