Some useful library stuff you can import:
http://haskell.org/ghc/docs/latest/html/libraries/base/Data-Ratio.html
http://haskell.org/ghc/docs/latest/html/libraries/base/Data-List.html#10

How to...