Planar diagrams and conversion program between classical diagrams and rotational diagrams in Haskell.