Make view a package where main is explicitly declared

Otherwise event-map resolves to a non-existant path.