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.
id :: forall (a :: k) . Category cat => cat a aghc-internal GHC.Internal.Control.Category the identity morphism
-
ghc-internal GHC.Internal.Data.Function Identity function.
id x = x
This function might seem useless at first glance, but it can be very useful in a higher order context.Examples
>>> length $ filter id [True, True, False, True] 3
>>> Just (Just 3) >>= id Just 3
>>> foldr id 0 [(^3), (*5), (+2)] 1000
-
numeric-prelude NumericPrelude Identity function.
id x = x
This function might seem useless at first glance, but it can be very useful in a higher order context.Examples
>>> length $ filter id [True, True, False, True] 3
>>> Just (Just 3) >>= id Just 3
>>> foldr id 0 [(^3), (*5), (+2)] 1000
-
numeric-prelude NumericPrelude.Base Identity function.
id x = x
This function might seem useless at first glance, but it can be very useful in a higher order context.Examples
>>> length $ filter id [True, True, False, True] 3
>>> Just (Just 3) >>= id Just 3
>>> foldr id 0 [(^3), (*5), (+2)] 1000
id :: forall (a :: k) . Category cat => cat a abasic-prelude CorePrelude the identity morphism
id :: forall (a :: k) . Category cat => cat a aclassy-prelude ClassyPrelude the identity morphism
-
ghc-lib-parser GHC.Prelude.Basic Identity function.
id x = x
This function might seem useless at first glance, but it can be very useful in a higher order context.Examples
>>> length $ filter id [True, True, False, True] 3
>>> Just (Just 3) >>= id Just 3
>>> foldr id 0 [(^3), (*5), (+2)] 1000
id :: forall (a :: k) . Category cat => cat a afoundation Foundation the identity morphism
-
prelude-compat Prelude2010 Identity function.
id x = x
This function might seem useless at first glance, but it can be very useful in a higher order context.Examples
>>> length $ filter id [True, True, False, True] 3
>>> Just (Just 3) >>= id Just 3
>>> foldr id 0 [(^3), (*5), (+2)] 1000
-
synthesizer-core Synthesizer.Causal.Process No documentation available.