[Haskell] Initialisation without unsafePerformIO