I get a warning for this function :
let dayofW' (d:System.DateTime) =
match d.DayOfWeek with
| DayOfWeek.Sunday -> 0.0
| DayOfWeek.Monday -> 1.0
| DayOfWeek.Tuesday -> 2.0
| DayOfWeek.Wednesday -> 3.0
| DayOfWeek.Thursday -> 4.0
| DayOfWeek.Friday -> 5.0
| DayOfWeek.Saturday -> 6.0
Incomplete pattern matches on this expression. For example, the value 'enum (7)' may indicate a case not covered by the pattern(s).
I understand that I have to deal with Enum (and not DU) but I can't find a way. I could not find an "Enum pattern" in msdn language reference.
How could I remove the warning with the minimum overwork?