Make a proper HsFunction for top-level functions.