<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<small>Am a bit stuck here,... please, what is wrong with this?<br>
<br>
checkNode :: String -> [String] -> Bool<br>
checkNode s nodes = <br>
[s == node | node <- nodes ]<br>
<br>
<br>
<small>src/me.hs:3:4:<br>
Couldn't match expected type `Bool' with actual type `[t0]'<br>
[1 of 1] Compiling Main ( src/me.hs, interpreted )<br>
In the expression: [s == node | node <- nodes]<br>
Failed, modules loaded: none.<br>
In an equation for `checkNode':<br>
checkNode s nodes = [s == node | node <- nodes]</small><br>
<br>
thanks,<br>
Miro<br>
</small>
</body>
</html>