My early intention was to limit the EW data type to showable/readable values. It wanted it to only accepting one of these.<br>Now I have even two alternatives to choose :-)<br>Thanks<br>Hartmut<br><br><div class="gmail_quote">
On Mon, Aug 8, 2011 at 12:02 AM, David Place <span dir="ltr">&lt;<a href="mailto:d@vidplace.com">d@vidplace.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;"><div class="im"><br><div><div>On Aug 7, 2011, at 5:54 PM, Hartmut wrote:</div><br><blockquote type="cite"><span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: medium;">David,<br>
that was fast :-) Thank you for your help!<br>Hartmut</span></blockquote></div><br></div><div>Your welcome.  ;-)  I needed the break from what I was doing.  I think I actually would like to add that normally i wouldn&#39;t put the class constraints in the data type definition.</div>
<div><br></div><div><div>module Main where</div><div><br></div><div>data EW a = EW a</div><div class="im"><div><br></div><div>x01 = EW 20</div><div>x02 = EW &quot;Test&quot;</div><div><br></div></div><div>instance (Show a) =&gt; Show (EW a) where</div>
<div class="im"><div>  show (EW x) = show &quot;EW:&quot; ++ show x</div><div><br></div></div><div>instance (Read a) =&gt;  Read (EW a) where</div><div>    read (etc...)</div></div><div class="im"><div><br></div><div><div>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: medium;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="word-wrap: break-word;">
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="word-wrap: break-word;">
____________________</div><div style="word-wrap: break-word;">David Place   <br>Owner, Panpipes Ho! LLC</div><div style="word-wrap: break-word;"><a href="http://panpipesho.com" target="_blank">http://panpipesho.com</a></div>
<div style="word-wrap: break-word;"><a href="mailto:d@vidplace.com" target="_blank">d@vidplace.com</a><br><br><br></div></span></div></span></span></div></div></div></div></blockquote></div><br>