diff options
| author | Joey Hess <joeyh@joeyh.name> | 2018-06-12 10:55:00 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2018-06-12 10:55:00 -0400 |
| commit | d1164739fb1844dd9a5c4e57c76ce1cd2dbddebc (patch) | |
| tree | 781c4133132251559bf7a647fd821f395f332e57 /src/Propellor/EnsureProperty.hs | |
| parent | 70f318e44d12500c62dd1ad1164fbf7fd9ca8726 (diff) | |
| parent | dca1c56e612757c4bb306fb45675337dc52eb201 (diff) | |
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/EnsureProperty.hs')
| -rw-r--r-- | src/Propellor/EnsureProperty.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Propellor/EnsureProperty.hs b/src/Propellor/EnsureProperty.hs index 5a07107c..6c720e2b 100644 --- a/src/Propellor/EnsureProperty.hs +++ b/src/Propellor/EnsureProperty.hs @@ -50,10 +50,10 @@ ensureProperty ensureProperty _ = maybe (return NoChange) catchPropellor . getSatisfy -- The name of this was chosen to make type errors a bit more understandable. -type family Cannot_ensureProperty_WithInfo (l :: [a]) :: Bool -type instance Cannot_ensureProperty_WithInfo '[] = 'True -type instance Cannot_ensureProperty_WithInfo (t ': ts) = - Not (t `EqT` 'WithInfo) && Cannot_ensureProperty_WithInfo ts +type family Cannot_ensureProperty_WithInfo (l :: [a]) :: Bool where + Cannot_ensureProperty_WithInfo '[] = 'True + Cannot_ensureProperty_WithInfo (t ': ts) = + Not (t `EqT` 'WithInfo) && Cannot_ensureProperty_WithInfo ts -- | Constructs a property, like `property`, but provides its -- `OuterMetaTypesWitness`. |
