On 9 August 2011 11:06, Paul Reiners <[email protected]> wrote: > > On Aug 8, 2011, at 7:59 PM, Ivan Lazar Miljenovic wrote: > >> On 9 August 2011 10:49, Paul Reiners <[email protected]> wrote: >>> step acc x = acc * 10 + digitToInt x >> >> digitToInt returns an Int; as such the result of asInt_foldAux is an >> Int, but you've specified in its type signature that it should be >> returning an Integer. > > So is there something like digitToInteger? Or can I somehow cast the Int to > an Integer?
step acc x = acc * 10 + fromIntegral (digitToInt x) -- Ivan Lazar Miljenovic [email protected] IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
