Timeline for We had a question once which only failed on Sundays
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 6, 2018 at 20:12 | comment | added | Laikoni | @nimi Thanks for the notice. | |
Jan 6, 2018 at 20:11 | history | edited | Laikoni | CC BY-SA 3.0 |
added 352 characters in body
|
Jan 5, 2018 at 15:51 | comment | added | nimi | ... the challenge rules now allow functions to return values on non-Sundays as long as they don't print. | |
Jan 5, 2018 at 15:46 | comment | added | nimi | Maybe you're right, but on the other hand a full program has an exit code, which is also a standard method. | |
Jan 5, 2018 at 15:42 | comment | added | Laikoni |
@nimi Thanks! I'm not sure about the function though, because of the No using input or showing output through the usual IO methods rule. As far as I see, using a function would result in an output for non-Sundays, even though it is wrapped in an IO-action.
|
|
Jan 5, 2018 at 15:39 | history | edited | Laikoni | CC BY-SA 3.0 |
added 133 characters in body
|
Jan 5, 2018 at 15:01 | comment | added | nimi |
main=pure$!succ.dateWeekDay<$>getCurrentDateTime . And, as functions are allowed, you can drop the main= .
|
|
Jan 5, 2018 at 14:06 | history | edited | Laikoni | CC BY-SA 3.0 |
added 368 characters in body
|
Jan 5, 2018 at 13:58 | history | edited | Laikoni | CC BY-SA 3.0 |
added 368 characters in body
|
Jan 5, 2018 at 13:43 | history | edited | Laikoni | CC BY-SA 3.0 |
deleted 2 characters in body
|
Jan 5, 2018 at 13:23 | history | edited | Laikoni | CC BY-SA 3.0 |
deleted 2 characters in body
|
Jan 5, 2018 at 13:10 | history | edited | Laikoni | CC BY-SA 3.0 |
added 222 characters in body
|
Jan 5, 2018 at 13:03 | history | answered | Laikoni | CC BY-SA 3.0 |