[Haskell-cafe] Fwd: Uniplate + strict fields = fail. Why?

Max Bolingbroke batterseapower at hotmail.com
Thu Oct 1 08:52:16 EDT 2009


2009/10/1 Dmitry Astapov <dastapov at gmail.com>:
> Hi,
>
> I've been playing with generics in general (pardon the pun) and Uniplate in
> particular, and found out that strict data fields somehow derail Uniplate.

I think this is related to Neil's bug report about Ratio:
http://hackage.haskell.org/trac/ghc/ticket/2782

The issue is that the Data instance for your types is stricter than he
is expecting. I don't know enough about Uniplate to work out why he
can't tunnel the undefined's he's trying to send through Data by
hiding then within a box.

Cheers,
Max


More information about the Haskell-Cafe mailing list