Module-level fields are here! - Haxe - The Cross-platform Toolkit
It is now possible to define functions and variables directly in Haxe modules