Support haskell-src-exts 1.16

Haskell-src-exts 1.16 has introduced some API change. I've added some conditional compilation to as to not change the dependency bounds in the cabal file. This now compiles and the test still passes.