Modules S.Function and S.Quantile require a lot of time to compile. Further investigation showed that this is due to function partialSort. It compiles to some 200k line of GHC core and probably to a lot of object code as well.
Quite likely it's vector-algorithms fault.
This is indeed problem in partialSort and GHC. Check GHC bug #5539 for details. I think it make sense to keep this bug open for information purposes