Implementation of Bellard's algorithm for calculating pi to 'n' digits in Haskell.