1 {-# LANGUAGE OverloadedStrings #-}
2 {-# LANGUAGE ScopedTypeVariables #-}
3 {-# OPTIONS_GHC -fno-warn-deprecations #-}
4 module UnitTests
.Distribution
.Described
where
6 import Distribution
.Compat
.Prelude
.Internal
9 import Distribution
.Described
(testDescribed
)
10 import Test
.Tasty
(TestTree
, testGroup
)
12 import Distribution
.Compiler
(CompilerFlavor
, CompilerId
)
13 import Distribution
.ModuleName
(ModuleName
)
14 import Distribution
.System
(Arch
, OS
)
15 import Distribution
.Types
.Dependency
(Dependency
)
16 import Distribution
.Types
.Flag
(FlagAssignment
, FlagName
)
17 import Distribution
.Types
.IncludeRenaming
(IncludeRenaming
)
18 import Distribution
.Types
.Mixin
(Mixin
)
19 import Distribution
.Types
.ModuleRenaming
(ModuleRenaming
)
20 import Distribution
.Types
.PackageId
(PackageIdentifier
)
21 import Distribution
.Types
.PackageName
(PackageName
)
22 import Distribution
.Types
.PackageVersionConstraint
(PackageVersionConstraint
)
23 import Distribution
.Types
.Version
(Version
)
24 import Distribution
.Types
.VersionRange
(VersionRange
)
25 import Distribution
.Verbosity
(Verbosity
)
28 import Test
.QuickCheck
.Instances
.Cabal
()
31 tests
= testGroup
"Described"
32 [ testDescribed
(Proxy
:: Proxy Dependency
)
33 , testDescribed
(Proxy
:: Proxy PackageName
)
34 , testDescribed
(Proxy
:: Proxy PackageIdentifier
)
35 , testDescribed
(Proxy
:: Proxy PackageVersionConstraint
)
36 , testDescribed
(Proxy
:: Proxy Version
)
37 , testDescribed
(Proxy
:: Proxy VersionRange
)
38 , testDescribed
(Proxy
:: Proxy FlagName
)
39 , testDescribed
(Proxy
:: Proxy FlagAssignment
)
40 , testDescribed
(Proxy
:: Proxy ModuleName
)
41 , testDescribed
(Proxy
:: Proxy OS
)
42 , testDescribed
(Proxy
:: Proxy Arch
)
43 , testDescribed
(Proxy
:: Proxy CompilerFlavor
)
44 , testDescribed
(Proxy
:: Proxy CompilerId
)
45 , testDescribed
(Proxy
:: Proxy ModuleRenaming
)
46 , testDescribed
(Proxy
:: Proxy IncludeRenaming
)
47 , testDescribed
(Proxy
:: Proxy Mixin
)
48 , testDescribed
(Proxy
:: Proxy Verbosity
)