Hi,
You can use git tag --contains <sha> to see the list of tags containing a commit; this goes back to ghc-7.2.
A different option is to checkout the
configure.ac file for a given commit; there'll be a line such as
AC_INIT([The Glorious Glasgow Haskell Compilation System], [6.9], [
glasgow-haskell-bugs@haskell.org], [ghc])
which means that GHC was 6.9 (so the given commit was released in 6.10).
Of course both methods don't account for cherry-picks, the same change with a different sha could have landed in a bugfix release.
-Krzysztof