© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Best Practices for Using taggedEnum: Export vs. Local Use - Effect Community
EC
Effect Community
•
2y ago
•
4 replies
Titouan Créac'h
Best Practices for Using taggedEnum: Export vs. Local Use
When you use taggedEnum
, is it better to
:
- export
, with the type
, the constructors and the
$match and
$is
- use
Data.taggedEnum<MyType>
Data.taggedEnum<MyType>
locally
?
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Helpers for Data.taggedEnum mapping functions
EC
Effect Community / data
2y ago
Creating a `isRedirect` Typeguard for TaggedEnum
EC
Effect Community / data
3y ago
Improving `taggedEnum` with Proxy for a Better API
EC
Effect Community / data
3y ago
Improving Reusability with Data.TaggedEnum
EC
Effect Community / data
2y ago