Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
<<**= ) :: (MonadState s m, Floating a) => LensLike' ((,) a) s a -> a -> m adiagrams-lib Diagrams.Prelude Modify the target of a Lens into your Monad's state by raising it by an arbitrary power and return the old value that was replaced. When you do not need the result of the operation, (**=) is more flexible.
(<<**=) :: (MonadState s m, Floating a) => Lens' s a -> a -> m a (<<**=) :: (MonadState s m, Floating a) => Iso' s a -> a -> m a
(
<<**~ ) :: Floating a => LensLike' ((,) a) s a -> a -> s -> (a, s)diagrams-lib Diagrams.Prelude Raise the target of a floating-point valued Lens to an arbitrary power and return the old value. When you do not need the old value, (**~) is more flexible.
>>> (a,b) & _1 <<**~ c (a,(a**c,b))
>>> (a,b) & _2 <<**~ c (b,(a,b**c))
(<<**~) :: Floating a => Lens' s a -> a -> s -> (a, s) (<<**~) :: Floating a => Iso' s a -> a -> s -> (a, s)
(
<**> ) :: Applicative f => f a -> f (a -> b) -> f brelude Relude.Applicative A variant of <*> with the types of the arguments reversed. It differs from flip (<*>) in that the effects are resolved in the order the arguments are presented.
Examples
>>> (<**>) (print 1) (id <$ print 2) 1 2
>>> flip (<*>) (print 1) (id <$ print 2) 2 1
>>> ZipList [4, 5, 6] <**> ZipList [(+1), (*2), (/3)] ZipList {getZipList = [5.0,10.0,2.0]}-
singletons-base Control.Applicative.Singletons No documentation available.
type family (a1 :: f a)
<**> (a2 :: f a ~> b) :: f bsingletons-base Control.Applicative.Singletons No documentation available.
data (a6989586621679356609 :: f a)
<**>@#@$$ (b1 :: TyFun f a ~> b f b)singletons-base Control.Applicative.Singletons No documentation available.
type family (a6989586621679356609 :: f a)
<**>@#@$$$ (a6989586621679356610 :: f a ~> b) :: f bsingletons-base Control.Applicative.Singletons No documentation available.
(
<**> ) :: Applicative f => f a -> f (a -> b) -> f bghc-internal GHC.Internal.Base A variant of <*> with the types of the arguments reversed. It differs from flip (<*>) in that the effects are resolved in the order the arguments are presented.
Examples
>>> (<**>) (print 1) (id <$ print 2) 1 2
>>> flip (<*>) (print 1) (id <$ print 2) 2 1
>>> ZipList [4, 5, 6] <**> ZipList [(+1), (*2), (/3)] ZipList {getZipList = [5.0,10.0,2.0]}-
massiv Data.Massiv.Array.Numeric Apply power to each element of the array where the power value is in the same cell in the second array.
arr1 .** arr2 == zipWith (**) arr1 arr2
- Partial Throws an error when arrays do not have matching sizes
(
<**> ) :: Applicative f => f a -> f (a -> b) -> f bprotolude Protolude A variant of <*> with the types of the arguments reversed. It differs from flip (<*>) in that the effects are resolved in the order the arguments are presented.
Examples
>>> (<**>) (print 1) (id <$ print 2) 1 2
>>> flip (<*>) (print 1) (id <$ print 2) 2 1
>>> ZipList [4, 5, 6] <**> ZipList [(+1), (*2), (/3)] ZipList {getZipList = [5.0,10.0,2.0]}