purescript/purescript-control

Definition of `fix` lacks sharing

natefaubion opened this issue · 1 comments

See purescript/purescript-lists#140 (comment)

The recursion with fix f prevents sharing. It should be defined as:

fix f = go where go = defer \_ -> f go
garyb commented

Resolved in 0.12 branch