Hoogle Search
Within LTS Haskell 24.18 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
>>=% ) :: Monad (Flip t c) => t a c -> (a -> t b c) -> t b ctype-flip Data.Type.Flip No documentation available.
-
express Data.Express.Fixtures The % constructor lifted over Exprs.
> val (2 :: Integer) -%- val (3 :: Integer) 2 % 3 :: Ratio Integer
This only accepts Exprs bound to the Integer type. (
^% ) :: forall (m :: Nat) a . (KnownNat m, Integral a) => Mod m -> a -> Mod mmod Data.Mod Drop-in replacement for ^ with much better performance. Negative powers are allowed, but may throw DivideByZero, if an argument is not coprime with the modulus.
>>> :set -XDataKinds >>> 3 ^% 4 :: Mod 10 -- 3 ^ 4 = 81 ≡ 1 (mod 10) 1 >>> 3 ^% (-1) :: Mod 10 -- 3 * 7 = 21 ≡ 1 (mod 10) 7 >>> 4 ^% (-1) :: Mod 10 -- 4 and 10 are not coprime (*** Exception: divide by zero
(
^% ) :: forall (m :: Nat) a . (KnownNat m, Integral a) => Mod m -> a -> Mod mmod Data.Mod.Word Drop-in replacement for ^ with a bit better performance. Negative powers are allowed, but may throw DivideByZero, if an argument is not coprime with the modulus.
>>> :set -XDataKinds >>> 3 ^% 4 :: Mod 10 -- 3 ^ 4 = 81 ≡ 1 (mod 10) 1 >>> 3 ^% (-1) :: Mod 10 -- 3 * 7 = 21 ≡ 1 (mod 10) 7 >>> 4 ^% (-1) :: Mod 10 -- 4 and 10 are not coprime (*** Exception: divide by zero
(
^% ) :: forall (m :: Nat) a . (KnownNat m, Integral a) => Mod m -> a -> Mod marithmoi Math.NumberTheory.Moduli.Class Drop-in replacement for ^ with much better performance. Negative powers are allowed, but may throw DivideByZero, if an argument is not coprime with the modulus.
>>> :set -XDataKinds >>> 3 ^% 4 :: Mod 10 -- 3 ^ 4 = 81 ≡ 1 (mod 10) 1 >>> 3 ^% (-1) :: Mod 10 -- 3 * 7 = 21 ≡ 1 (mod 10) 7 >>> 4 ^% (-1) :: Mod 10 -- 4 and 10 are not coprime (*** Exception: divide by zero
-
optics-extra Optics.Indexed Compose two indexed optics and drop indices of the right one. (If you want to compose an indexed and a non-indexed optic, you can just use (%).)
>>> itoListOf (ifolded <% ifolded) ["foo", "bar"] [(0,'f'),(0,'o'),(0,'o'),(1,'b'),(1,'a'),(1,'r')]
-
optics-extra Optics.Indexed Compose two indexed optics. Their indices are composed as a pair.
>>> itoListOf (ifolded <%> ifolded) ["foo", "bar"] [((0,0),'f'),((0,1),'o'),((0,2),'o'),((1,0),'b'),((1,1),'a'),((1,2),'r')]
-
optics-extra Optics.State.Operators Modify the target of a PermeableOptic into your Monad's state by a user supplied function and return the result.
-
optics-extra Optics.State.Operators Modify the target of a PermeableOptic into your Monad's state by a user supplied function and return the old value that was replaced.
(
&% ) :: forall (tag :: Symbol) m n . (Sayable tag m, Pretty n) => m -> n -> Saying tagsayable Text.Sayable A helper operator allowing a Sayable item to be composed with a Pretty item into a Saying. This is infrequently used and primarily allows the composition of a data object which has a Prettyprinter instance but no Sayable instance.
>>> sez @"info" $ t'"hello" &% (t'"world", t'"!") "hello (world, !)"