Hoogle Search
Within LTS Haskell 24.28 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapWriter :: ((a, w) -> (b, w')) -> Writer w a -> Writer w' bautomaton Data.Automaton.Trans.Writer Map both the return value and output of a computation using the given function.
mapWriterT :: (m (a, w) -> n (b, w')) -> WriterT w m a -> WriterT w' n bautomaton Data.Automaton.Trans.Writer Map both the return value and output of a computation using the given function.
runWriterT (mapWriterT f m) = f (runWriterT m)
-
automaton Data.Stream.Except Apply a function to the output of the stream
-
automaton Data.Stream.Optimized Change the output type and effect of a stream without changing its state type.
mapResultState :: (s1 -> s2) -> Result s1 a -> Result s2 aautomaton Data.Stream.Result Apply a function to the state of a Result.
mappend :: Monoid a => a -> a -> abase-prelude BasePrelude An associative operation NOTE: This method is redundant and has the default implementation mappend = (<>) since base-4.11.0.0. Should it be implemented manually, since mappend is a synonym for (<>), it is expected that the two functions are defined the same way. In a future GHC release mappend will be removed from Monoid.
mapBits :: (forall a . Bits a => a -> a) -> Vector Bit -> Vector Bitbitvec Data.Bit Map a vectors with the given function. Similar to map, but faster.
>>> :set -XOverloadedLists >>> import Data.Bits >>> mapBits complement [0,1,1] [1,0,0]
mapInPlace :: PrimMonad m => (forall a . Bits a => a -> a) -> MVector (PrimState m) Bit -> m ()bitvec Data.Bit Apply a function to a mutable vector bitwise, rewriting its contents. Cf. mapBits.
>>> :set -XOverloadedLists >>> import Data.Bits >>> Data.Vector.Unboxed.modify (mapInPlace complement) [0,1,1] [1,0,0]
mapBits :: (forall a . Bits a => a -> a) -> Vector Bit -> Vector Bitbitvec Data.Bit.ThreadSafe Map a vectors with the given function. Similar to map, but faster.
>>> :set -XOverloadedLists >>> import Data.Bits >>> mapBits complement [0,1,1] [1,0,0]
mapInPlace :: PrimMonad m => (forall a . Bits a => a -> a) -> MVector (PrimState m) Bit -> m ()bitvec Data.Bit.ThreadSafe Apply a function to a mutable vector bitwise, rewriting its contents. Cf. mapBits.
>>> :set -XOverloadedLists >>> import Data.Bits >>> Data.Vector.Unboxed.modify (mapInPlace complement) [0,1,1] [1,0,0]