On Thu, Nov 10, 2016 at 07:44:17PM +0100, sasa bogicevic wrote:
> Hi All,
>
> This is a small program
>
> [...]
Hey Sasa,
If we put this into ghci
λ> :t formatDateString $ timeFromString _
the "hole" tells us we need something of type String, but `getDateString`
is not!
λ> :t getDateString
getDateString :: IO UTCTime
That means you have to bind it inside a `do` block (or use >>=).
Ask for more if I was not clear!
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners