Extracting representation from GHC