Was this added because adding a benchmark section in bytestring.cabal creates a dependency cycle? If so, you can try to add it to bytestring.cabal instead but *not* depend on the library but instead directly on the source files (i.e. list them in other-modules).