[Haskell-cafe] How to fix such a TYPE problem ?

zaxis z_axis at 163.com
Mon Aug 31 23:47:55 EDT 2009

>let [y,m,d] = map (\x -> read x::Int) $ splitRegex (mkRegex "-")
>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

View this message in context: http://www.nabble.com/How-to-fix-such-a-TYPE-problem---tp25233906p25233906.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

More information about the Haskell-Cafe mailing list