If you're going to use a StreamT for this, it should really be a StreamT[IO, T] since it's effectful.