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
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to