Pass input for file on stdin

Open files in Haskell to get proper IO errors.  Fixes test errors