[Haskell-cafe] [newbie] How to test this function?

Bruno Martínez br1 at internet.com.uy
Thu Sep 21 10:28:28 EDT 2006


On Thu, 21 Sep 2006 05:30:34 -0300, Bulat Ziganshin
<bulat.ziganshin at gmail.com> wrote:

> Hello Bruno,
>
> Thursday, September 21, 2006, 8:28:23 AM, you wrote:
>
>> First, how do I fix the identation of the if then else?
>
> http://haskell.org/haskellwiki/IO_inside contains a lot of information
> about using IO monad

That page is very good.

>> Second, I want to test this function, without hitting the filesystem.   
>> In
>> C++ I would use a istringstream.  I couldn't find a function that  
>> returns
>> a Handle from a String.
>
> http://haskell.org/haskellwiki/Library/Streams

I'll give this a try.

Thanks,
Bruno

     Conectese mas rapido y ahorre hasta un 50%
    Tel. 0909.2030 =>  $0,15 IVA incluido el minuto
______________________________________________________
http://www.internet.com.uy - En Uruguay somos internet



More information about the Haskell-Cafe mailing list