Update cabal file with dependencies
Implement fold over nodes and edges