Re: AW: [Haskell-cafe] Example for formatted show in HStringTemplate

2009-07-14 Thread Sterling Clover
What I suspect that you've encountered is an infelicity when importing GenericStandard. The ToSElem instance defaults to that provided by (Data a) context. However, there is no special handler for Data.Time types in the `extQ` chain. I could add one, but that would require relying on the Data.Time

[Haskell-cafe] Example for formatted show in HStringTemplate

2009-07-13 Thread Kemps-Benedix Torsten
Hello, is there a working example of how to use the format clause with HStringTemplate, e.g. for Data.Time.Day? I think, if there is a parameter $day$, a reasonable template might contain e.g.: $day;format="%d.%b.%Y"$ But I only get "toModifiedJulianDay: [54960]" as the result which correspond