I\'m trying to make utility which can pattern-match on enums (I hate switch statements). This is what I currently have but this is not working. Any help would be appreciated