File: Described.hs

package info (click to toggle)
haskell-cabal-install 3.10.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,400 kB
  • sloc: haskell: 52,202; sh: 80; makefile: 9
file content (35 lines) | stat: -rw-r--r-- 1,552 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{-# LANGUAGE OverloadedStrings   #-}
{-# LANGUAGE ScopedTypeVariables #-}
module UnitTests.Distribution.Client.Described where

import Distribution.Client.Compat.Prelude
import Prelude ()
import Test.QuickCheck.Instances.Cabal ()
import UnitTests.Distribution.Client.ArbitraryInstances ()
import UnitTests.Distribution.Client.DescribedInstances ()

import Distribution.Described (testDescribed)
import Test.Tasty             (TestTree, testGroup)

import Distribution.Client.BuildReports.Types     (InstallOutcome, Outcome)
import Distribution.Client.IndexUtils.ActiveRepos (ActiveRepos)
import Distribution.Client.IndexUtils.IndexState  (RepoIndexState, TotalIndexState)
import Distribution.Client.IndexUtils.Timestamp   (Timestamp)
import Distribution.Client.Targets                (UserConstraint)
import Distribution.Client.Types                  (RepoName)
import Distribution.Client.Types.AllowNewer       (RelaxDepSubject, RelaxDeps, RelaxedDep)

tests :: TestTree
tests = testGroup "Described"
    [ testDescribed (Proxy :: Proxy Timestamp)
    , testDescribed (Proxy :: Proxy RepoIndexState)
    , testDescribed (Proxy :: Proxy TotalIndexState)
    , testDescribed (Proxy :: Proxy RepoName)
    , testDescribed (Proxy :: Proxy ActiveRepos)
    , testDescribed (Proxy :: Proxy RelaxDepSubject)
    , testDescribed (Proxy :: Proxy RelaxedDep)
    , testDescribed (Proxy :: Proxy RelaxDeps)
    , testDescribed (Proxy :: Proxy UserConstraint)
    , testDescribed (Proxy :: Proxy InstallOutcome)
    , testDescribed (Proxy :: Proxy Outcome)
    ]