txt-sushi-0.6.0: The SQL link in your *NIX chain

Portabilityportable
Stabilityexperimental
Maintainerkeithshep@gmail.com
Safe HaskellSafe-Inferred

Database.TxtSushi.IOUtil

Description

A couple of util functions for txt-sushi

Synopsis

Documentation

bufferStdioToTempFile :: IO FilePathSource

buffers standard input to a temp file and returns a path to that file

getContentsFromFileOrStdin :: String -> IO StringSource

if given - this file reads from stdin otherwise it reads from the named file

printSingleFileUsage :: IO ()Source

print a cookie-cutter usage message for the command line utilities that take a single file name or - as input