Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- base64Sha512Hash :: [Char] -> String
- fetchPassword :: Maybe Char -> String -> IO String
- fetchUsername :: String -> IO String
- isConnectable :: String -> String -> IO Bool
- managerSettings :: CertificateStore -> ManagerSettings
- putOrPageStrLn :: String -> IO ExitCode
- data VALID
- valid :: VALID -> String -> IO Bool
Documentation
base64Sha512Hash :: [Char] -> String Source #
Given a string, return a Base64, SHA512 hash.
fetchPassword :: Maybe Char -> String -> IO String Source #
Fetch the password with prompt Password
or prompt string s
and
masking character c
otherwise *
.
fetchUsername :: String -> IO String Source #
Fetch the user name with prompt Username
or prompt string s
.
isConnectable :: String -> String -> IO Bool Source #
Return true if one can connect to hostname h
and port p
,
otherwise false with a message sent to stderr.
managerSettings :: CertificateStore -> ManagerSettings Source #
Given a certificate store, create manager settings for SSL/TLS connections.
putOrPageStrLn :: String -> IO ExitCode Source #
Put a string or page it if the environmental variable PAGER is set.
valid :: VALID -> String -> IO Bool Source #
Is the string a valid VALID
?
valid HOSTNAME "localhost" valid PORT "8080" valid PROTOCOL "http" valid READABLE "/path_to_query_file/file" -- Terminating semi-colon (;) optional valid PREFIX "set_namespace('sensor_data');" valid HISTORY "HOME/.hquery_history"
where HOME is replaced by the home directory of the user if it exists, otherwise /tmp.