Upon running stack --profile on an executable, cabal warns about using the deprecated --enable-executable-profiling flag:
Warning: The flag --enable-executable-profiling is deprecated. Please use
--enable-profiling instead.
The related code seems to be here.
Using latest stack (1.1.2).