id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
5431	Add popCount to Data.Bits	tibbe		"Now when we have a fast `popCnt#` primop it would be nice to expose it to the world through an official API. I propose we add this method to the `Bits` class in `Data.Bits`:

{{{
-- | Return the number of set bits in the argument, know as the
-- population count or the Hamming weight.
popCount :: a -> Int
}}}

The proposal was discussed and agreed upon in this thread: http://thread.gmane.org/gmane.comp.lang.haskell.libraries/16073"	feature request	closed	high	7.4.1	libraries/base	7.2.1	fixed			Unknown/Multiple	Unknown/Multiple	None/Unknown					
