Fix mouse and cabal file (mouse only quickfix since it needs state)