APL - compiled version in Haskell