Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
leancheck Test.LeanCheck.Utils.TypeBinding Type restricted version of const that forces its first argument to have the same type as the second. A symnonym to asTypeOf:
value -: ty = value :: Ty
Examples:10 -: int = 10 :: Int undefined -: 'a' >- 'b' = undefined :: Char -> Char
(
-:> ) :: (a -> b) -> a -> a -> bleancheck Test.LeanCheck.Utils.TypeBinding Type restricted version of const that forces the argument of its first argument to have the same type as the second:
f -:> ty = f -: ty >- und = f :: Ty -> a
Example:abs -:> int = abs -: int >- und = abs :: Int -> Int
(
->: ) :: (a -> b) -> b -> a -> bleancheck Test.LeanCheck.Utils.TypeBinding Type restricted version of const that forces the result of its first argument to have the same type as the second.
f ->: ty = f -: und >- ty = f :: a -> Ty
(
->:> ) :: (a -> b -> c) -> b -> a -> b -> cleancheck Test.LeanCheck.Utils.TypeBinding Type restricted version of const that forces the second argument of its first argument to have the same type as the second.
f ->:> ty = f -: und -> ty -> und = f :: a -> Ty -> b
(
->>: ) :: (a -> b -> c) -> c -> a -> b -> cleancheck Test.LeanCheck.Utils.TypeBinding Type restricted version of const that forces the result of the result of its first argument to have the same type as the second.
f ->>: ty = f -: und -> und -> ty = f :: a -> b -> Ty
(
->>:> ) :: (a -> b -> c -> d) -> c -> a -> b -> c -> dleancheck Test.LeanCheck.Utils.TypeBinding Type restricted version of const that forces the third argument of its first argument to have the same type as the second.
(
->>>: ) :: (a -> b -> c -> d) -> d -> a -> b -> c -> dleancheck Test.LeanCheck.Utils.TypeBinding Type restricted version of const that forces the result of the result of the result of its first argument to have the same type as the second.
(
->>>:> ) :: (a -> b -> c -> d -> e) -> d -> a -> b -> c -> d -> eleancheck Test.LeanCheck.Utils.TypeBinding Forces the 4th argument type.
(
->>>>: ) :: (a -> b -> c -> d -> e) -> e -> a -> b -> c -> d -> eleancheck Test.LeanCheck.Utils.TypeBinding Forces the result type of a 4-argument function.
(
->>>>:> ) :: (a -> b -> c -> d -> e -> f) -> e -> a -> b -> c -> d -> e -> fleancheck Test.LeanCheck.Utils.TypeBinding Forces the 5th argument type.