I am trying to build a simple program in Haskell using stack. I created a new project using stack new and did a stack setup after that. The templat
stack new
stack setup
This is likely because you added bytestring to the build-depends of the library, not the executable. One option to avoid needing to repeat these dependencies for the different stanzas is to use hpack as the package description format.
bytestring
build-depends