fix build error on example/api.hs.