An Apache2-licensed conversion library for Magic Lantern written in Haskell