Routines for implementing server-side processing for DataTables (jQuery grid) in Haskell