© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Understanding the Behavior of the filterStack Function in `pretty` Code - Effect Community
EC
Effect Community
•
3y ago
•
27 replies
gzz-tan
Understanding the Behavior of the filterStack Function in `pretty` Code
I am having some fun reading the
pretty
pretty
code for errors
I am trying to understand what the expected behaviour for the filterStack function is
https://github.com/Effect-TS/effect/blob/0200f1263dcfd769ed6b381036207a583b34964c/src/internal/cause.ts#L960
My interpretation is that it is used to clean up the stack
, but the implementation
, returns something different
(e
.g
. if on the first line of the stack I have
EffectPrimitive
EffectPrimitive
, it returns an empty string
)
. If my interpretation is correct
, the code should not return in the for loop
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
Understanding Bounded Queue Behavior in Effect Program
EC
Effect Community / 🚀-effect
4w ago
Understanding the Purpose of BrowserWorker in Evolu
EC
Effect Community / 🚀-effect
3y ago
Understanding the Role of `enumerateChildren` in ConfigProvider
EC
Effect Community / 🚀-effect
3y ago
Understanding the Return Type of Effect/Option's `tap()` Function
EC
Effect Community / 🚀-effect
2y ago