<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br>I've been away from Haskell Land for a while, but I think the function cf below, given a list of Ints should calculate a continuous fraction. I'm using Hugs 98 and get errors when loading and also when trying to use the % operator at the command prompt (see below). What must I do to get this to work?<br><br>Michael<br><br>===============<br><br>cf :: [Int] -&gt; Rational<br>cf [] = 0<br>
cf (x:[]) = 1 % x<br>
cf (x:xs) = x + (1 % cf xs)<br><br>Hugs&gt; :load cf.hs<br>ERROR "cf.hs":2 - Undefined variable "%"<br>Hugs&gt; <br><br>Hugs&gt; 1 % 5<br>ERROR - Undefined variable "%"<br>Hugs&gt; <br><br><br><br></td></tr></table><br>