definition:
|
getHashWith :: String -> String -> IO String
getHashWith hashcmd toHash = do
(sin, sout, _) <- execCmd hashcmd
hPutStrLn sin toHash
hClose sin
result <- hGetLine sout
return (head (words result))
|
demand:
|
no demanded arguments
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Hashes a string with an explicit Unix hash command.
--- @param hashcmd - Unix command for hasing
--- @param toHash - string which should be hashed
--- @return the hashed string
|
failfree:
|
<FAILING>
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_) |-> _}
|
name:
|
getHashWith
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
String -> String -> Prelude.IO String
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|