[Haskell-cafe] Converting image2PS function

Tillmann Rendel rendel at rbg.informatik.tu-darmstadt.de
Tue Mar 18 11:57:34 EDT 2008


iliali16 wrote:
> I have this function ready 
> 
> image2PS:: Image -> String -> IO()
> 
> but when I use it for example
> 
> image2PS spiral iliali
>  
> it tells me that the iliali is undefined.

iliali is a variable, which has to be bound so it can be used, e.g.

   iliali = "iliali"
   main = image2PS spiral iliali

alternatively, you can use a literal string (enclosed in double quotes) 
directly:

   main = image2PS spiral "iliali"

Tillmann


More information about the Haskell-Cafe mailing list