Pig implementation in Haskell (PoC)