aristanetworks/purescript-backend-optimizer

Evaluate literal `String` comparison

jam-awake opened this issue · 2 comments

See #21 (comment)

const test4 = /* #__PURE__ */ (() => Data$dOrd.ordString.compare("h")("i"))();

What do you expect this to evaluate to?

Oh sorry, you mean when both are known strings. Yes, I think we could handle that.