add types and adjust cabal to enable plotting in dev mode