update function.hs with new matcher