Slightly more general type for runOpenFile.
Multiple result types w/ sum type working.