Discussion:
hugs type error with show
(too old to reply)
Benjamin Ho
2005-04-09 20:24:47 UTC
Permalink
i'm getting an error such as this:

ERROR - Cannot find "show" function for:
....

Of type: ([Integer], Integer, [Integer], Integer -> Char -> [Integer])

i believe the correct type would be
([Integer], Integer, [Integer], (Integer -> Char -> [Integer]))

does anyone have any ideas?
thanks
Ben
Nedialko B. Dimitrov
2005-04-09 22:27:02 UTC
Permalink
You should use the showNdfa function faimily provided in utilities.hs, as
opposed to having the interpreter try to show machines on its own.

When the interpreter tries to show things on its own, it looks for the
show functions you describe. You are getting errors for them because they
are not defined.

Ned.
Benjamin Ho
2005-04-10 02:42:55 UTC
Permalink
duh, this post made me feel smart.

thanks ned.
Post by Nedialko B. Dimitrov
You should use the showNdfa function faimily provided in utilities.hs, as
opposed to having the interpreter try to show machines on its own.
When the interpreter tries to show things on its own, it looks for the
show functions you describe. You are getting errors for them because they
are not defined.
Ned.
Loading...