Ugly cabal integration.