How to properly write a function accepting an effect and using catchTag? - Effect Community