Best viewed with latest Chrome or Firefox. This is the demo application for the Haskell-tools project and falls under the same licence. The example code on the top is taken from haskell.org. The origin of other examples is mentioned in comments.
The new name must be a valid haskell name for the renamed definition. It cannot contain spaces.
The new name of the extracted definition must be a valid haskell name. It cannot contain spaces.