<div dir="ltr">The naming convention for variables and functions is that they should start with a lower case letter. Types have capitalized names.<br> <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 9, 2014 at 3:12 PM, Roelof Wobben <span dir="ltr"><<a href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<br>
<div><br>
<br>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap><br>
</th>
<td><br>
</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap><br>
</th>
<td><br>
</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap><br>
</th>
<td><br>
</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" 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>
</div>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>