Commit da0f0430 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

Rewrite Haddocks for GHC.Base.const

Test Plan: Read it

Reviewers: austin, hvr, #core_libraries_committee

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1720

GHC Trac Issues: #11314
parent 7e599f53
......@@ -1023,7 +1023,12 @@ breakpointCond _ r = r
data Opaque = forall a. O a
-- | Constant function.
-- | @const x@ is a unary function which evaluates to @x@ for all inputs.
--
-- For instance,
--
-- >>> map (const 42) [0..3]
-- [42,42,42,42]
const :: a -> b -> a
const x _ = x
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment