change switch to use cabal/xmoand