Now with pattern matching
This commit is contained in:
parent
112bdf4847
commit
0044d607f6
|
@ -23,6 +23,6 @@ getCurrentWeekDay = dayOfWeek . utctDay <$> getCurrentTime
|
|||
main :: IO ()
|
||||
main = do
|
||||
day <- getCurrentWeekDay
|
||||
if day == Tuesday
|
||||
then print Friet
|
||||
else print =<< (randomIO :: IO Fastfood)
|
||||
case day of
|
||||
Tuesday -> print Friet
|
||||
_ -> print =<< (randomIO :: IO Fastfood)
|
||||
|
|
Loading…
Reference in a new issue