Is a wildcard always required for union cases of Active Patterns?
Warning:
Incomplete pattern matches on this expression.
let (|Positive|Neutral|Negative|) = function
| x when x > 0 -> Positive
| x when x = 0 -> Neutral
| x when x < 0 -> Negative
The warning is resolved when I insert a wild card as a union case:
let (|Positive|Neutral|Negative|) = function
| x when x > 0 -> Positive
| x when x = 0 -> Neutral
| x when x < 0 -> Negative
| _ -> failwith "unknown"
What other cases am I missing?