Alastair Reid writes:
> 
> [Simon PJ and Simon M: should fullRender be mentioned in the library document?]
> 
> Thanks Ralf,
> 
> I've added renderStyle and string_txt.
> 
> I was about to update the library document too - but then I noticed that
>  fullRender and associated types aren't mentioned there.

Exposing `fullRender', `renderStyle' and `string_txt' has the
unfortunate effect that TextDetails' constructors also has to be
exported. Implementations of the Pretty interface may for efficiency
reasons decide to represent that type differently (e.g., the Pretty
implementation used by GHC extends it to include C strings
aka. FAST_STRING. Other additions may follow soon.)

One solution to this might be to parameterise the Doc type over
the type of the elements it is describing the layout of. (Doing this
has other benefits than just solving the above.)

Just a thought,
--Sigbjorn

Reply via email to