Closed phadej closed 1 year ago
I noticed unsafeCoerce# in https://github.com/haskell-hvr/regex-tdfa/pull/52 and it look scary.
With this small change we see what the target type of coercion, which makes it slightly less scary.
Especially as we use unsafeCoerce (without the hash), so we don't (accidentally) coerce between difference runtime reps.
unsafeCoerce
I noticed unsafeCoerce# in https://github.com/haskell-hvr/regex-tdfa/pull/52 and it look scary.
With this small change we see what the target type of coercion, which makes it slightly less scary.
Especially as we use
unsafeCoerce
(without the hash), so we don't (accidentally) coerce between difference runtime reps.