Open georgefst opened 2 years ago
{-# LANGUAGE NamedFieldPuns #-} data D = D {a :: Bool} f a = D{a = a} x = f True
retrie --unfold Main.f correctly produces x = D{a = True}. But if we equivalently f a = D{a}, then we get x = D{a}, which doesn't make any sense.
retrie --unfold Main.f
x = D{a = True}
f a = D{a}
x = D{a}
retrie --unfold Main.f
correctly producesx = D{a = True}
. But if we equivalentlyf a = D{a}
, then we getx = D{a}
, which doesn't make any sense.