Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A simple image hosting site written in Haskell.
fromMaybe ""
Use of C's if syntax is a bit weird, too. No need for these extra parens.
getRandomName weirdly uses getStdGen/newStdGen instead of just making a random generator directly.
basename is (incorrectly) duplicating standard library behavior.
saveFile uses fromJust, will crash at runtime.
There are no comments on this comment yet.
Use of C's if syntax is a bit weird, too. No need for these extra parens.
getRandomName weirdly uses getStdGen/newStdGen instead of just making a random generator directly.
basename is (incorrectly) duplicating standard library behavior.
saveFile uses fromJust, will crash at runtime.