Infinite precision arithmetic for Haskell using continued fractions