One of my favorite features of Haskell is that I can use where to write the auxiliary function definitions after the code that use them, but keep them scoped inside of a single function.
A relatively bad example here: https://wiki.haskell.org/Worker_wrapper#Hiding_the_worker