<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-forward-container"><br>
<br>
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap"><br>
</th>
<td><br>
</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap"><br>
</th>
<td><br>
</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap"><br>
</th>
<td><br>
</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap"><br>
</th>
<td><br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>Hello,
I try to solve the 99 haskell problems on several ways.
But my first try which looks like this :
Last2::[a]-> a
Last2:: last[list]
gives the following error message :
src/Main.hs@1:1-1:6
Invalid type signature: Last2 :: [a] -> a Should be of form <variable>
:: <type>
What am trying to do is say the input is a list which can be of integers
or chars so everything is the output can then also be of type everything.
Roelof
</pre>
<br>
</div>
<br>
</body>
</html>