@hackage optparse-version0.1.0.0

optparse-version

A simple option which will display whatever is in version.txt when you run my-exe --version or my-exe -v

See app/Main.hs for an example