Now with pattern matching
This commit is contained in:
parent
112bdf4847
commit
0044d607f6
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue