News for hackers. Stuff that matters.
Re:Reading Simple Haskell by joeyh on Saturday December 09, 2017 @12:09PM (#15886726)
This example is very contrived, but challenge accepted..

    main = do
      let print = putStr . (++ "  ") in do
        print "happy"
        print "holidays" -- indentation sensitive
      putStrLn "!"
De-indenting the marked line by 2 spaces exposes some scroogey irony.

(Note that compiler warnings give a hint about the bad idea in this code, but nested do's can have this problem without warnings also.)

Re:Reading Simple Haskell by avmich on Saturday December 09, 2017 @02:19PM (#15887509)
I'm not sure that's what GP meant. I understood what he said as "it's hard to write code which correct in logic, types, and which passes correct beautifier which changes logic", and I'd think this is impossible.

The example you gave requires to change logic - because indentation is a part of the logic here.