Consider the following function which runs a command:
getGrepStdout :: IO String
getGrepStdOut = do let cmd' = "grep"
pattern' = "//"
options' = "-nR"
path' = "/path/to/file"
stdin' = ""
args' = [pattern', options', path']
(_, stdout', _) <- readProcessWithExitCode cmd' args' stdin'
return stdout'
Notice the second to last line which has a double _
wild card matching (within a do
block). This seems to compile fine in my case, but I was wondering if it was problematic formally speaking?