Fork of the hackage version of bits-extras