[Haskell-cafe] Example for RVarT?

2010-02-17 Thread Kemps-Benedix, Torsten
Hello folks, is there an example (simpe or not) for the use of Data.Random.RVarT with an underlying monad other than Identity, e.g. StateT, ReaderT etc.? Thx Torsten ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

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

2009-07-14 Thread Kemps-Benedix Torsten
[mailto:fiddlosop...@gmail.com] Gesendet: Dienstag, 14. Juli 2009 08:20 An: Kemps-Benedix Torsten Cc: ha...@googlegroups.com; haskell-cafe@haskell.org Betreff: Re: Example for formatted show in HStringTemplate +++ Kemps-Benedix Torsten [Jul 13 09 23:56 ]: Hello, is there a working example of how to use

[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 corresponds

[Haskell-cafe] toSelem takes no format parameter

2009-03-27 Thread Kemps-Benedix Torsten
Sterling, the toSElem function of ToSElem does not take a parameter that allows specification of e.g. the locale that shall be used for rendering a specific attribute. If one wants to change this, one also has to change setAttribute and the like. Do you have any plans to extend

AW: Exception handling in numeric computations (was Re: [Haskell-cafe]Use unsafePerformIO to catch Exception?)

2009-03-26 Thread Kemps-Benedix Torsten
All this is certainly true. But there is still a valid concern: Numerical tasks often allow to predict whether an error might occur or not. Let's say you know that you have a normal matrix N and want to calculate (1+N*N)^-1. Of course the matrix is invertible and therefore it is reasonable to

[Haskell-cafe] HSTringTemplate and syb-with-class

2009-03-23 Thread Kemps-Benedix Torsten
Hello all, I'm trying to use the generic capabilities of HSTringTemplate. The documentation claims that the package is able to automatically generate instances of ToSElem if syb-with-class is installed but gives no further details. I installed syb-with-class and then installed HSTringTemplate

AW: [Haskell-cafe] Haskell.org GSoC

2009-02-20 Thread Kemps-Benedix Torsten
Hello, but to specify that “this function turns a list into its sorted equivalent” would probably require to specify e.g. sort in terms of the type system and to write code that actually does the sorting. The first task is much like specifying what a sorted list is in first-order-logic (much