Haskell API for PlotServer