Implement function-sections for Haskell code, #8405