<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>Using Show it is possible to establish a relationship between an enum type<br><br>data Color<br>&nbsp;&nbsp;&nbsp; = Red<br>&nbsp;&nbsp;&nbsp; | Blue<br>&nbsp;&nbsp;&nbsp; | Green<br>&nbsp;&nbsp;&nbsp; | Yellow<br>&nbsp;&nbsp;&nbsp; | Orange<br>&nbsp;&nbsp;&nbsp; | Brown<br>&nbsp;&nbsp;&nbsp; | White<br>&nbsp;&nbsp;&nbsp; | Black<br>&nbsp;&nbsp;&nbsp; deriving (Show, Eq, Enum, Bounded)<br><br>and a String type to display it.<br><br>*Main&gt; Red<br>Red<br>*Main&gt; [Red,Green,Blue]<br>[Red,Green,Blue]<br>*Main&gt;<br><br>which is<br><br>Red :: Color -&gt; "Red" :: [Char] <br><br>Can one as easily establish a reverse relationship, i.e., convert a String type like "Red" back to its corresponding Color type?<br><br>So that<br><br>"Red" :: [Char] -&gt; Red :: Color<br><br><br>Michael &nbsp;<br><br></td></tr></table><br>