Provide when via snoocore main require

As on tin. Fixes #37.