Status Updates From Real World Haskell
Real World Haskell by
Status Updates Showing 1-30 of 516
Vlad Ardelean
is starting
logging stuff while debugging code was probably so annoying for the creators of Haskell, that they decided to break its purity, for the sake of productivity:
https://hackage.haskell.org/package/b...
trace :: String -> a -> a
this PRINTS the string, and returns the a, but it's not marked as `String -> a -> IO a`...so compiler doesn't force you have to have to rewrite lots of code.
— Jun 24, 2021 07:39AM
Add a comment
https://hackage.haskell.org/package/b...
trace :: String -> a -> a
this PRINTS the string, and returns the a, but it's not marked as `String -> a -> IO a`...so compiler doesn't force you have to have to rewrite lots of code.
Vlad Ardelean
is starting
Chapter 9 shows a nice example of a piece of code written at the beginner level, vs the same code written by a more advanced hasketier. Nice to know!
— Jun 19, 2021 10:07PM
Add a comment







