haiku.scala: add the functional file