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.
-
base Prelude 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
-
base 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
id :: forall (a :: k) . Category cat => cat a abase Control.Category the identity morphism
-
base GHC.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
-
hedgehog Hedgehog.Internal.Prelude 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 :: AttributeValue -> Attributeblaze-html Text.Blaze.Html4.FrameSet.Attributes Combinator for the id attribute. Example:
div ! id "bar" $ "Hello."
Result:<div id="bar">Hello.</div>
id :: AttributeValue -> Attributeblaze-html Text.Blaze.Html4.Strict.Attributes Combinator for the id attribute. Example:
div ! id "bar" $ "Hello."
Result:<div id="bar">Hello.</div>
id :: AttributeValue -> Attributeblaze-html Text.Blaze.Html4.Transitional.Attributes Combinator for the id attribute. Example:
div ! id "bar" $ "Hello."
Result:<div id="bar">Hello.</div>
id :: AttributeValue -> Attributeblaze-html Text.Blaze.Html5.Attributes Combinator for the id attribute. Example:
div ! id "bar" $ "Hello."
Result:<div id="bar">Hello.</div>
id :: AttributeValue -> Attributeblaze-html Text.Blaze.XHtml1.FrameSet.Attributes Combinator for the id attribute. Example:
div ! id "bar" $ "Hello."
Result:<div id="bar">Hello.</div>