How get yesterday in Haskell? For the current day - of course it works like this:
date :: IO (Integer,Int,Int) -- :: (year,month,day)
date = getCurrentTime >>= return . toGregorian . utctDay
But for yesterday? Does that work with diffUTCTime?
With sql:
select current date, current date - 1 day from sysdba.routine
08.11.2018 07.11.2018
But with Haskell?