resolved cabal syntax error