Extracting type metadata from Elm code?

So the idea would be to write a new codec package for symmetrically parsing and building URLs?