Fix FunctionSpec.hs