The parser is a little fussy at the moment and requires you to put import/export directives before use directives. This should be relaxed.