
1 Sep
2009
1 Sep
'09
3:47 a.m.
let [y,m,d] = map (\x -> read x::Int) $ splitRegex (mkRegex "-") "2009-08-31" fromGregorian y m d
Couldn't match expected type `Integer' against inferred type `Int' In the first argument of `fromGregorian', namely `y' In the expression: fromGregorian y m d In the definition of `it': it = fromGregorian y m d thanks! -- View this message in context: http://www.nabble.com/How-to-fix-such-a-TYPE-problem---tp25233906p25233906.h... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.