sunlight-0.6.0.0: Test Cabalized package against multiple dependency versions

Safe HaskellNone

Test.Sunlight

Synopsis

Documentation

type Description = StringSource

A description for this compiler version. This will be used in the directory name in the tree that is written to disk. I simply use a compiler version, such as 7.4.

type Compiler = StringSource

Path to GHC compiler. You can use a full path name or, if you use just an executable name, the PATH will be searched.

type GhcPkg = StringSource

Path to ghc-pkg. If you use just an executable name, the PATH will be searched.

type Cabal = StringSource

Path to cabal executable. Used to install package dependencies. If you use just an executable name, the PATH will be searched.

data TestInputs Source

Constructors

TestInputs 

Fields

tiDescription :: Maybe GenericPackageDescription

If Just, use this package description. Handy if you write your own package description in Haskell rather than in the cabal format. Otherwise, use Nothing and sunlight will look for the default cabal file and parse that.

tiCabal :: Cabal

Which cabal executable to use.

tiLowest :: (Description, Compiler, GhcPkg)

Test the minimum dependency bounds using this compiler. A report is left in the main package directory showing which package versions worked with this compiler and with the minimum bounds.

tiDefault :: [(Description, Compiler, GhcPkg)]

Test the default dependencies using these compilers. Since cabal-install will eagerly get the most recent dependencies it can find, this will test the highest possible versions. The compiler specified in tiLowest is not automatically retried here, so if you want to use that compiler specify it as well.

The last compiler in this list is assumed to be the most recent compiler. A report is left in the main package directory showing the dependencies that worked with this compiler version.

tiTest :: [(String, [String])]
 

Instances