Determining GHC version use to compile an executable?
dons at galois.com
Tue Oct 9 14:50:44 EDT 2007
> I was wondering if there was a clever way to determine the GHC version
> that was used to compile a particular executable. I looked in the RTS
> flags and didn't see anything obvious, but I was wondering if I missed
> something or if there was a clever back door. It's not a big deal if
> there isn't but, if there is, it might help me diagnose a problem.
$ strings myHaskell.exe | sed -n '/^[0-9]\.[0-9]\.[0-9]/p'
$ strings `which xmonad` | sed -n '/^[0-9]\.[0-9]\.[0-9]/p'
$ strings `which hmp3` | sed -n '/^[0-9]\.[0-9]\.[0-9]/p'
More information about the Glasgow-haskell-users