How to externalize a type-safe Match as function input? - Effect Community