Relax upper version bounds on dependencies

This commit is contained in:
Gregor Kleen 2018-02-20 17:46:24 +01:00
parent 51dfd77f3c
commit 67bb87ceff
3 changed files with 20 additions and 8 deletions

View File

@ -1,13 +1,25 @@
{-# LANGUAGE CPP #-}
module Main where module Main where
import Distribution.Simple import Distribution.Simple
import Data.Encoding.Preprocessor.Mapping import Data.Encoding.Preprocessor.Mapping
import Data.Encoding.Preprocessor.XMLMappingBuilder import Data.Encoding.Preprocessor.XMLMappingBuilder
#if MIN_VERSION_Cabal(2,0,0)
main = defaultMainWithHooks (simpleUserHooks main = defaultMainWithHooks (simpleUserHooks
{hookedPreProcessors = (("mapping",\_ _ -> mappingPreprocessor) {hookedPreProcessors = ( ("mapping" , \_ _ _ -> mappingPreprocessor)
:("mapping2",\_ _ -> mappingPreprocessor) : ("mapping2", \_ _ _ -> mappingPreprocessor)
:("xml",\_ _ -> xmlPreprocessor) : ("xml" , \_ _ _ -> xmlPreprocessor)
:(hookedPreProcessors simpleUserHooks) : (hookedPreProcessors simpleUserHooks)
) )
}) })
#else
main = defaultMainWithHooks (simpleUserHooks
{hookedPreProcessors = ( ("mapping" , \_ _ -> mappingPreprocessor)
: ("mapping2", \_ _ -> mappingPreprocessor)
: ("xml" , \_ _ -> xmlPreprocessor)
: (hookedPreProcessors simpleUserHooks)
)
})
#endif

View File

@ -36,7 +36,7 @@ Source-Repository this
Custom-Setup Custom-Setup
Setup-Depends: base >=3 && <5, Setup-Depends: base >=3 && <5,
Cabal >=1.24 && <1.25, Cabal >=1.24 && <2.1,
containers, containers,
filepath, filepath,
ghc-prim, ghc-prim,
@ -51,7 +51,7 @@ Library
extensible-exceptions >=0.1 && <0.2, extensible-exceptions >=0.1 && <0.2,
ghc-prim >=0.3 && <0.6, ghc-prim >=0.3 && <0.6,
mtl >=2.0 && <2.3, mtl >=2.0 && <2.3,
regex-compat >=0.71 && <0.95 regex-compat >=0.71 && <0.96
Extensions: CPP Extensions: CPP

View File

@ -15,7 +15,7 @@
# resolver: # resolver:
# name: custom-snapshot # name: custom-snapshot
# location: "./custom-snapshot.yaml" # location: "./custom-snapshot.yaml"
resolver: lts-8.22 resolver: lts-10.5
# User packages to be built. # User packages to be built.
# Various formats can be used as shown in the example below. # Various formats can be used as shown in the example below.