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

2009-08-31 Thread zaxis
thanks! Luke Palmer-2 wrote: > > On Mon, Aug 31, 2009 at 9:47 PM, zaxis wrote: >> >>>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 `fr

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

2009-08-31 Thread Luke Palmer
On Mon, Aug 31, 2009 at 9:47 PM, zaxis wrote: > >>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 expres

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

2009-08-31 Thread zaxis
>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':