Factor out calls to getGhcOptionsViaCabalRepl

Also filter out haskell module names from the cabal options list
using a Parsec parser.