CurryInfo: cryptohash-3.0.0 / Crypto.Hash.getHashWith

definition: Info
 
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: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
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: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_) |-> _}
name: Info
 getHashWith
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> String -> Prelude.IO String
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term