Minor: extract import
Minor: prettyPrint -> compactPrint
Safely parsing Location