fun getError [t] maybe = case maybe of None => error Attempted to extract a value out of a None | Some v => v