FSm canonical in HASKELL