move haskalOpt to Environment module