You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this instance was implemented via ST, then purescript-backend-optimizer would inline things when possible.
However, it seems that we can't currently do this because arrays depends on nonempty, which depends on unfoldable. AFAIK, this dependency chain exists because arrays has functions like fromNonEmpty, though I don't think anyone uses NonEmpty Array.
If this instance was implemented via
ST, thenpurescript-backend-optimizerwould inline things when possible.However, it seems that we can't currently do this because
arraysdepends onnonempty, which depends onunfoldable. AFAIK, this dependency chain exists becausearrayshas functions likefromNonEmpty, though I don't think anyone usesNonEmpty Array.If we updated
arraysto depend onunfoldableandnonemptyto depend onarrays, then we could add anUnfoldableinstance forArraythat usesST