<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thanks, <br>
<br>
I changed it to this : <br>
<br>
last2::[a]-> a<br>
last2::last[a]<br>
<br>
but now I see these error messages: <br>
<br>
<div class="ide-error">
<div class="ide-error-msg">src/Main.hs@1:1-1:6<span> The type
signature for</span><span class="cm-variable">last2</span><span>
lacks an accompanying binding</span></div>
</div>
<div class="ide-error">
<div class="ide-error-span">src/Main.hs@2:1-2:6<span> Duplicate
type signatures for</span><span class="cm-variable"> last2</span><span>
<br>
at
/home/app/isolation-runner-work/projects/75679/session.207/src/src/Main.hs:1:1-5
<br>
/home/app/isolation-runner-work/projects/75679/session.207/src/src/Main.hs:2:1-5</span>
src/Main.hs@2:1-2:6 </div>
</div>
<div class="ide-error">
<div class="ide-error-msg"><span>The type signature for</span><span
class="cm-variable"> last2</span><span> lacks an
accompanying binding</span></div>
</div>
<br>
<br>
<br>
akash g schreef op 9-11-2014 10:48:<br>
</div>
<blockquote
cite="mid:CALiga_fyzCx7Fowz=_dB25MJcEUPzXQoMRoTyEE+GWJe2U8H6w@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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="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>
</div>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a moz-do-not-send="true"
href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a moz-do-not-send="true"
href="http://www.haskell.org/mailman/listinfo/beginners"
target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://www.haskell.org/mailman/listinfo/beginners">http://www.haskell.org/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<br>
</body>
</html>