News for hackers. Stuff that matters.
Re:Carnegie Mellon's intro functional programming lectures a... by tromp on Monday November 20, 2023 @02:58PM (#38353660)
> Sometimes I just want to do something silly, like adding a log somewhere.

In Haskell, you can use Debug.Trace for just that purpose, when you don't want to change the type of your function.

Re:Carnegie Mellon's intro functional programming lectures a... by frozenlettuce on Monday November 20, 2023 @03:20PM (#38354051)
I've been playing with purescript and found out that they have a similar library, thanks!