Now with pattern matching

This commit is contained in:
Nox Sluijtman 2024-03-21 11:48:51 +01:00
parent 112bdf4847
commit 0044d607f6

View file

@ -23,6 +23,6 @@ getCurrentWeekDay = dayOfWeek . utctDay <$> getCurrentTime
main :: IO () main :: IO ()
main = do main = do
day <- getCurrentWeekDay day <- getCurrentWeekDay
if day == Tuesday case day of
then print Friet Tuesday -> print Friet
else print =<< (randomIO :: IO Fastfood) _ -> print =<< (randomIO :: IO Fastfood)