module Grisette.Lib.Data.Functor
( mrgFmap,
(.<$),
(.$>),
(.<$>),
(.<&>),
mrgUnzip,
mrgVoid,
)
where
import Grisette.Internal.Core.Data.Class.Mergeable (Mergeable)
import Grisette.Internal.Core.Data.Class.TryMerge (TryMerge)
import qualified Grisette.Unified.Lib.Data.Functor as Unified
mrgFmap ::
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
(a -> b) ->
f a ->
f b
mrgFmap :: forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
(a -> b) -> f a -> f b
mrgFmap = (a -> b) -> f a -> f b
forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
(a -> b) -> f a -> f b
Unified.mrgFmap
{-# INLINE mrgFmap #-}
infixl 4 .<$>
(.<$>) ::
(TryMerge f, Mergeable a, Mergeable b, Functor f) => (a -> b) -> f a -> f b
.<$> :: forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
(a -> b) -> f a -> f b
(.<$>) = (a -> b) -> f a -> f b
forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
(a -> b) -> f a -> f b
(Unified..<$>)
{-# INLINE (.<$>) #-}
infixl 4 .<$
(.<$) :: (TryMerge f, Mergeable a, Mergeable b, Functor f) => b -> f a -> f b
.<$ :: forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
b -> f a -> f b
(.<$) = b -> f a -> f b
forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
b -> f a -> f b
(Unified..<$)
{-# INLINE (.<$) #-}
infixl 4 .$>
(.$>) :: (TryMerge f, Mergeable a, Mergeable b, Functor f) => f a -> b -> f b
.$> :: forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
f a -> b -> f b
(.$>) = f a -> b -> f b
forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
f a -> b -> f b
(Unified..$>)
{-# INLINE (.$>) #-}
infixl 1 .<&>
(.<&>) ::
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
f a ->
(a -> b) ->
f b
.<&> :: forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
f a -> (a -> b) -> f b
(.<&>) = f a -> (a -> b) -> f b
forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
f a -> (a -> b) -> f b
(Unified..<&>)
{-# INLINE (.<&>) #-}
mrgUnzip ::
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
f (a, b) ->
(f a, f b)
mrgUnzip :: forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
f (a, b) -> (f a, f b)
mrgUnzip = f (a, b) -> (f a, f b)
forall (f :: * -> *) a b.
(TryMerge f, Mergeable a, Mergeable b, Functor f) =>
f (a, b) -> (f a, f b)
Unified.mrgUnzip
{-# INLINE mrgUnzip #-}
mrgVoid :: (TryMerge f, Functor f) => f a -> f ()
mrgVoid :: forall (f :: * -> *) a. (TryMerge f, Functor f) => f a -> f ()
mrgVoid = f a -> f ()
forall (f :: * -> *) a. (TryMerge f, Functor f) => f a -> f ()
Unified.mrgVoid
{-# INLINE mrgVoid #-}