An example of how to implement a basic notepad with wxHaskell