Fix type signature of durability in Function.hs

Fix type signature type from constraint.