add convert func
Merge branch 'master' of https://github.com/freizl/dive-into-haskell