|
7 | 7 | {-# LANGUAGE FlexibleContexts #-} |
8 | 8 | {-# LANGUAGE FlexibleInstances #-} |
9 | 9 | {-# LANGUAGE GADTs #-} |
10 | | -{-# LANGUAGE GeneralizedNewtypeDeriving #-} |
11 | 10 | {-# LANGUAGE ImportQualifiedPost #-} |
12 | 11 | {-# LANGUAGE InstanceSigs #-} |
13 | 12 | {-# LANGUAGE LambdaCase #-} |
|
21 | 20 | {-# LANGUAGE TypeOperators #-} |
22 | 21 | {-# LANGUAGE UndecidableInstances #-} |
23 | 22 | {-# OPTIONS_GHC -Wno-orphans #-} |
24 | | --- GHC9.2.8 needs this |
25 | | -{-# OPTIONS_GHC -Wno-redundant-constraints #-} |
26 | 23 |
|
27 | 24 | -- | This module provides the necessary instances of `HasSpec` |
28 | 25 | -- and `HasSimpleRep` to write specs for the environments, |
@@ -790,7 +787,7 @@ instance Logic StringW where |
790 | 787 | bar :: forall s. (HasSpec s, StringLike s) => NonEmpty Int -> Specification s |
791 | 788 | bar ys = typeSpec $ lengthSpec @s (MemberSpec ys) |
792 | 789 |
|
793 | | - mapTypeSpec :: forall a b. (HasSpec a, HasSpec b) => StringW '[a] b -> TypeSpec a -> Specification b |
| 790 | + mapTypeSpec :: forall a b. StringW '[a] b -> TypeSpec a -> Specification b |
794 | 791 | mapTypeSpec StrLenW ss = getLengthSpec @a ss |
795 | 792 |
|
796 | 793 | class StringLike s where |
@@ -1888,9 +1885,8 @@ instance Logic CoercibleW where |
1888 | 1885 | propagateMemberSpec CoerceW (Unary HOLE) xs = coerceSpec $ MemberSpec xs |
1889 | 1886 | propagateTypeSpec CoerceW (Unary HOLE) ts cant = coerceSpec $ TypeSpec ts cant |
1890 | 1887 |
|
1891 | | - mapTypeSpec :: |
1892 | | - forall a b. (HasSpec a, HasSpec b) => CoercibleW '[a] b -> TypeSpec a -> Specification b |
1893 | | - mapTypeSpec CoerceW ss = getCoerceSpec @a ss |
| 1888 | + mapTypeSpec :: forall a b. CoercibleW '[a] b -> TypeSpec a -> Specification b |
| 1889 | + mapTypeSpec CoerceW = getCoerceSpec @a |
1894 | 1890 |
|
1895 | 1891 | coerce_ :: |
1896 | 1892 | forall a b. |
|
0 commit comments