Full threadfegu·Haskell added a function popCount in https://hackage.haskell.org/package/base-4.18.0.0/docs/Data-... some years ago to allow easy use of this operation where present.View on HN