Couldn't match `API.Interface' against `Int -> Int' Expected type: API.Interface Inferred type: Int -> Int didn't compile