cdepillabout/pretty-simple

Add hard-coded support for UTCTime

bitc opened this issue · 2 comments

bitc commented

This library is great, but doesn't work when it encounters a UTCTime:

    now <- liftIO getCurrentTime
    pPrint (now, now)

This is the result:

( 2021 - 03 - 16 18 : 04 : 08.725928 UTC
, 2021 - 03 - 16 18 : 04 : 08.725928 UTC
)

For reference, this is what Show for UTCTime looks like

(2021-03-16 18:04:08.725928 UTC,2021-03-16 18:04:08.725928 UTC)

I think it would be a good idea to hardcode support for UTCTime into this library. Some type of regex could detect the string fragments that look like UTCTime, and keep them the way they are (and possibly color them in a distinct color)

Thank you

See #75.

TL;DR - we used to handle it better, and we can hopefully get back there without hardcoding anything.

Lets close this in favor of #75.