<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<div>I am Studying for an exam, and i have just come accross the following 3 questions, i am not familiar with the functions, therefore i would appreciate any help.</div><div><br></div><div>!! i have already created painting 2 &amp; 3 all i need is the 3 functions, for the three different tasks as shown below. the functions are the showPic, sizeRaw and isPic.</div><div><br></div><div>questions are:</div><div><br></div><div>1) &nbsp;– Define showPic :: Canvas -&gt; IO () for displaying pictures on the</div><div>terminal. Examples:</div><div><br></div><div>Cw2010&gt; showPic (painting 2)</div><div>+---+---+---+---+---+</div><div>| a | n | e | x | a |</div><div>+---+---+---+---+---+</div><div>| m | p | l | e | t |</div><div>+---+---+---+---+---+</div><div>| e | x | t | i | s |</div><div>+---+---+---+---+---+</div><div>| s | h | o | w | n |</div><div>+---+---+---+---+---+</div><div><br></div><div>Cw2010&gt; showPic (painting 3)</div><div>+---+---+---+---+---+---+---+</div><div>| A | n | o | t | h | e | r |</div><div>+---+---+---+---+---+---+---+</div><div>| | t | e | s | t | ! | |</div><div>+---+---+---+---+---+---+---+</div><div><br></div><div>2) &nbsp;– Furthermore, define sizeRaw :: Canvas -&gt; (Int, Int) for finding</div><div>out the size of a raw picture as demonstrated here.</div><div>Cw2010&gt; sizeRaw ["anexa","mplet","extis","shown"]</div><div>(5,4)</div><div><br></div><div>3) &nbsp;– Finally, define isPic :: Canvas -&gt; Bool for checking a particular</div><div>necessary condition which items of type Canvas must satisfy (full or</div><div>raw). The condition you should check for is whether all the ‘rows’ of</div><div>the input have the same length. (It may be assumed that the input</div><div>of isPic is of type Canvas.) Examples:</div><div><br></div><div>Cw2010&gt; isPic (painting 3)</div><div>True</div><div>Cw2010&gt; isPic (painting 4)</div><div>False</div><div><br></div><div>Suggestion. I found it useful in my implementation to define and use</div><div>here the auxiliary function isEqual :: [Int] -&gt; Bool; example:</div><div><br></div><div>Cw2008&gt; isEqual [8,8,8,8]</div><div>True</div><div>Cw2008&gt; isEqual [8,8,4,8]</div><div>False</div><div>You may wish to define and use isEqual in your implementation of</div><div>isPic too.</div>                                               </body>
</html>