Fix type signature of durability in Function.hs