I often have a function with multiple parameters of the same type, and sometimes use them in the wrong order. As a simple example
let combinePath (path : string) (fileName : string) = ...
It seems to me that phantom types would be a good way to catch any mix ups. But I don't understand how to apply the example in the only F# phantom types question.
How would I implement phantom types in this example? How would I call combinePath? Or am I missing a simpler solution to the problem?