prime.hs to tribial directory