Generate canonical dependencies

Fixes #32.