Read from stdin if path is "-", otherwise read from file
Equations
- StrataDDM.Util.readInputSource path = if (path == "-") = true then do let stdin ← liftM IO.getStdin stdin.readToEnd else IO.FS.readFile { toString := path }
Instances For
Read binary from stdin if path is "-", otherwise read from file
Equations
- StrataDDM.Util.readBinInputSource path = if (path == "-") = true then do let stdin ← liftM IO.getStdin stdin.readBinToEnd else IO.FS.readBinFile { toString := path }