- Console <M, RT>
- readKey
- readKeys
- clear
- read
- reads
- readLine
- readLines
- writeEmptyLine
- writeLine (string line)
- writeLine2 (string line)
- write (string line)
- write (char line)
- setBgColour (ConsoleColor colour)
- setColour (ConsoleColor colour)
- resetColour ()
- bgColour
- colour
- Console <RT>
- readKey
- readKeys
- clear
- read
- reads
- readLine
- readLines
- writeEmptyLine
- writeLine (string line)
- writeLine2 (string line)
- write (string line)
- write (char line)
- setBgColour (ConsoleColor colour)
- setColour (ConsoleColor colour)
- resetColour
- bgColour
- color
- Enc <M, RT>
- Enc <RT>
- Environment <M, RT>
- commandLine
- currentManagedThreadId
- exit (int exitCode)
- exitCode
- setExitCode (int exitCode)
- expandEnvironmentVariables (string name)
- failFast (Option<string> message)
- failFast (Option<string> message, Option<Exception> exception)
- commandLineArgs
- getEnvironmentVariable (string variable)
- getEnvironmentVariable (string variable, EnvironmentVariableTarget target)
- environmentVariables
- getEnvironmentVariables (EnvironmentVariableTarget target)
- getFolderPath (Environment.SpecialFolder folder)
- getFolderPath (Environment.SpecialFolder folder, Environment.SpecialFolderOption option)
- logicalDrives
- hasShutdownStarted
- is64BitOperatingSystem
- is64BitProcess
- machineName
- newLine
- osVersion
- processorCount
- setEnvironmentVariable (string variable, Option<string> value)
- setEnvironmentVariable (string variable, Option<string> value, EnvironmentVariableTarget target)
- stackTrace
- systemDirectory
- systemPageSize
- tickCount
- userDomainName
- userInteractive
- userName
- version
- workingSet
- Environment <RT>
- commandLine
- currentManagedThreadId
- exit (int exitCode)
- exitCode
- setExitCode (int exitCode)
- expandEnvironmentVariables (string name)
- failFast (Option<string> message)
- failFast (Option<string> message, Option<Exception> exception)
- commandLineArgs
- getEnvironmentVariable (string variable)
- getEnvironmentVariable (string variable, EnvironmentVariableTarget target)
- environmentVariables
- getEnvironmentVariables (EnvironmentVariableTarget target)
- getFolderPath (Environment.SpecialFolder folder)
- getFolderPath (Environment.SpecialFolder folder, Environment.SpecialFolderOption option)
- logicalDrives
- hasShutdownStarted
- is64BitOperatingSystem
- is64BitProcess
- machineName
- newLine
- osVersion
- processorCount
- setEnvironmentVariable (string variable, Option<string> value)
- setEnvironmentVariable (string variable, Option<string> value, EnvironmentVariableTarget target)
- stackTrace
- systemDirectory
- systemPageSize
- tickCount
- userDomainName
- userInteractive
- userName
- version
- workingSet
- Time <M, RT>
- Time <RT>
Sub modules
Diag |
IO |
class Console <M, RT> Source #
Time IO
property Producer<ConsoleKeyInfo, M, Unit> readKeys Source #
Read keys from the console and push them downstream
property Producer<string, M, Unit> readLines Source #
Read lines from the console and push them downstream
property K<M, Unit> writeEmptyLine Source #
Write an empty line to the console
method K<M, string> writeLine2 (string line) Source #
Write a line to the console (returning the original line)
method K<M, Unit> setBgColour (ConsoleColor colour) Source #
method K<M, Unit> resetColour () Source #
Time IO
property Producer<ConsoleKeyInfo, Eff<RT>, Unit> readKeys Source #
Read keys from the console and push them downstream
property Producer<int, Eff<RT>, Unit> reads Source #
Read chars from the console and push them downstream
property Producer<string, Eff<RT>, Unit> readLines Source #
Read lines from the console and push them downstream
property Eff<RT, Unit> writeEmptyLine Source #
Write an empty line to the console
property Eff<RT, Unit> resetColour Source #
method Eff<RT, string> writeLine2 (string line) Source #
Write a line to the console (returning the original line)
method Eff<RT, Unit> setBgColour (ConsoleColor colour) Source #
class Environment <M, RT> Source #
Environment IO
property K<M, string> commandLine Source #
Gets the command line for this process.
property K<M, int> currentManagedThreadId Source #
Gets a unique identifier for the current managed thread.
property K<M, Seq<string>> commandLineArgs Source #
Returns a string array containing the command-line arguments for the current process.
property K<M, HashMap<string, Option<string>>> environmentVariables Source #
Retrieves all environment variable names and their values from the current process.
property K<M, Seq<string>> logicalDrives Source #
Returns an array of string containing the names of the logical drives on the current computer.
property K<M, bool> hasShutdownStarted Source #
Gets a value that indicates whether the current application domain is being unloaded or the common language runtime (CLR) is shutting down.
property K<M, bool> is64BitOperatingSystem Source #
Determines whether the current operating system is a 64-bit operating system.
property K<M, bool> is64BitProcess Source #
Determines whether the current process is a 64-bit process.
property K<M, string> machineName Source #
Gets the NetBIOS name of this local computer.
property K<M, OperatingSystem> osVersion Source #
Gets an OperatingSystem object that contains the current platform identifier and version number.
property K<M, int> processorCount Source #
Gets the number of processors on the current machine.
property K<M, string> stackTrace Source #
Gets current stack trace information.
property K<M, string> systemDirectory Source #
Gets the fully qualified path of the system directory.
property K<M, int> systemPageSize Source #
Gets the number of bytes in the operating system's memory page.
property K<M, long> tickCount Source #
Gets the number of milliseconds elapsed since the system started.
property K<M, string> userDomainName Source #
Gets the network domain name associated with the current user.
property K<M, bool> userInteractive Source #
Gets a value indicating whether the current process is running in user interactive mode.
property K<M, string> userName Source #
Gets the user name of the person who is currently logged on to the operating system.
property K<M, Version> version Source #
Gets a Version object that describes the major, minor, build, and revision numbers of the common language runtime.
property K<M, long> workingSet Source #
Gets the amount of physical memory mapped to the process context.
method K<M, Unit> exit (int exitCode) Source #
Terminates this process and returns an exit code to the operating system.
method K<M, Unit> setExitCode (int exitCode) Source #
Sets the exit code of the process.
param | exitCode | exit code of the process |
method K<M, string> expandEnvironmentVariables (string name) Source #
Replaces the name of each environment variable embedded in the specified string with the string equivalent of the value of the variable, then returns the resulting string.
param | name | A string containing the names of zero or more environment variables. Each environment variable is quoted with the percent sign character (%). |
method K<M, Unit> failFast (Option<string> message) Source #
Immediately terminates a process after writing a message to the Windows Application event log, and then includes the message in error reporting to Microsoft.
param | message | A message that explains why the process was terminated, or null if no explanation is provided. |
method K<M, Unit> failFast (Option<string> message, Option<Exception> exception) Source #
Immediately terminates a process after writing a message to the Windows Application event log, and then includes the message and exception information in error reporting to Microsoft.
param | message | A message that explains why the process was terminated, or null if no explanation is provided. |
param | exception | An exception that represents the error that caused the termination. This is typically the exception in a catch block. |
method K<M, Option<string>> getEnvironmentVariable (string variable) Source #
Retrieves the value of an environment variable from the current process.
param | variable | The name of an environment variable. |
method K<M, Option<string>> getEnvironmentVariable (string variable, EnvironmentVariableTarget target) Source #
Retrieves the value of an environment variable from the current process or from the Windows operating system registry key for the current user or local machine.
param | variable | The name of an environment variable. |
param | target | Target |
method K<M, HashMap<string, Option<string>>> getEnvironmentVariables (EnvironmentVariableTarget target) Source #
Retrieves all environment variable names and their values from the current process, or from the Windows operating system registry key for the current user or local machine.
param | target | One of the System.EnvironmentVariableTarget values. Only System.EnvironmentVariableTarget.Process is supported on .NET Core running on Unix-based systems. |
method K<M, string> getFolderPath (Environment.SpecialFolder folder) Source #
Gets the path to the system special folder that is identified by the specified enumeration.
param | folder | One of enumeration values that identifies a system special folder. |
method K<M, string> getFolderPath (Environment.SpecialFolder folder, Environment.SpecialFolderOption option) Source #
Gets the path to the system special folder that is identified by the specified enumeration, and uses a specified option for accessing special folders.
param | folder | One of the enumeration values that identifies a system special folder. |
param | option | One of the enumeration values that specifies options to use for accessing a special folder. |
method K<M, Unit> setEnvironmentVariable (string variable, Option<string> value) Source #
Creates, modifies, or deletes an environment variable stored in the current process.
param | variable | The name of an environment variable. |
param | value | A value to assign to variable . |
method K<M, Unit> setEnvironmentVariable (string variable, Option<string> value, EnvironmentVariableTarget target) Source #
Creates, modifies, or deletes an environment variable stored in the current process or in the Windows operating system registry key reserved for the current user or local machine.
param | variable | The name of an environment variable. |
param | value | A value to assign to variable. |
param | target | One of the enumeration values that specifies the location of the environment variable. |
class Environment <RT> Source #
Environment IO
property Eff<RT, string> commandLine Source #
Gets the command line for this process.
property Eff<RT, int> currentManagedThreadId Source #
Gets a unique identifier for the current managed thread.
property Eff<RT, Seq<string>> commandLineArgs Source #
Returns a string array containing the command-line arguments for the current process.
property Eff<RT, HashMap<string, Option<string>>> environmentVariables Source #
Retrieves all environment variable names and their values from the current process.
property Eff<RT, Seq<string>> logicalDrives Source #
Returns an array of string containing the names of the logical drives on the current computer.
property Eff<RT, bool> hasShutdownStarted Source #
Gets a value that indicates whether the current application domain is being unloaded or the common language runtime (CLR) is shutting down.
property Eff<RT, bool> is64BitOperatingSystem Source #
Determines whether the current operating system is a 64-bit operating system.
property Eff<RT, bool> is64BitProcess Source #
Determines whether the current process is a 64-bit process.
property Eff<RT, string> machineName Source #
Gets the NetBIOS name of this local computer.
property Eff<RT, OperatingSystem> osVersion Source #
Gets an OperatingSystem object that contains the current platform identifier and version number.
property Eff<RT, int> processorCount Source #
Gets the number of processors on the current machine.
property Eff<RT, string> stackTrace Source #
Gets current stack trace information.
property Eff<RT, string> systemDirectory Source #
Gets the fully qualified path of the system directory.
property Eff<RT, int> systemPageSize Source #
Gets the number of bytes in the operating system's memory page.
property Eff<RT, long> tickCount Source #
Gets the number of milliseconds elapsed since the system started.
property Eff<RT, string> userDomainName Source #
Gets the network domain name associated with the current user.
property Eff<RT, bool> userInteractive Source #
Gets a value indicating whether the current process is running in user interactive mode.
property Eff<RT, string> userName Source #
Gets the user name of the person who is currently logged on to the operating system.
property Eff<RT, Version> version Source #
Gets a Version object that describes the major, minor, build, and revision numbers of the common language runtime.
property Eff<RT, long> workingSet Source #
Gets the amount of physical memory mapped to the process context.
method Eff<RT, Unit> exit (int exitCode) Source #
Terminates this process and returns an exit code to the operating system.
method Eff<RT, Unit> setExitCode (int exitCode) Source #
Sets the exit code of the process.
param | exitCode | exit code of the process |
method Eff<RT, string> expandEnvironmentVariables (string name) Source #
Replaces the name of each environment variable embedded in the specified string with the string equivalent of the value of the variable, then returns the resulting string.
param | name | A string containing the names of zero or more environment variables. Each environment variable is quoted with the percent sign character (%). |
method Eff<RT, Unit> failFast (Option<string> message) Source #
Immediately terminates a process after writing a message to the Windows Application event log, and then includes the message in error reporting to Microsoft.
param | message | A message that explains why the process was terminated, or null if no explanation is provided. |
method Eff<RT, Unit> failFast (Option<string> message, Option<Exception> exception) Source #
Immediately terminates a process after writing a message to the Windows Application event log, and then includes the message and exception information in error reporting to Microsoft.
param | message | A message that explains why the process was terminated, or null if no explanation is provided. |
param | exception | An exception that represents the error that caused the termination. This is typically the exception in a catch block. |
method Eff<RT, Option<string>> getEnvironmentVariable (string variable) Source #
Retrieves the value of an environment variable from the current process.
param | variable | The name of an environment variable. |
method Eff<RT, Option<string>> getEnvironmentVariable (string variable, EnvironmentVariableTarget target) Source #
Retrieves the value of an environment variable from the current process or from the Windows operating system registry key for the current user or local machine.
param | variable | The name of an environment variable. |
param | target | Target |
method Eff<RT, HashMap<string, Option<string>>> getEnvironmentVariables (EnvironmentVariableTarget target) Source #
Retrieves all environment variable names and their values from the current process, or from the Windows operating system registry key for the current user or local machine.
param | target | One of the System.EnvironmentVariableTarget values. Only System.EnvironmentVariableTarget.Process is supported on .NET Core running on Unix-based systems. |
method Eff<RT, string> getFolderPath (Environment.SpecialFolder folder) Source #
Gets the path to the system special folder that is identified by the specified enumeration.
param | folder | One of enumeration values that identifies a system special folder. |
method Eff<RT, string> getFolderPath (Environment.SpecialFolder folder, Environment.SpecialFolderOption option) Source #
Gets the path to the system special folder that is identified by the specified enumeration, and uses a specified option for accessing special folders.
param | folder | One of the enumeration values that identifies a system special folder. |
param | option | One of the enumeration values that specifies options to use for accessing a special folder. |
method Eff<RT, Unit> setEnvironmentVariable (string variable, Option<string> value) Source #
Creates, modifies, or deletes an environment variable stored in the current process.
param | variable | The name of an environment variable. |
param | value | A value to assign to variable . |
method Eff<RT, Unit> setEnvironmentVariable (string variable, Option<string> value, EnvironmentVariableTarget target) Source #
Creates, modifies, or deletes an environment variable stored in the current process or in the Windows operating system registry key reserved for the current user or local machine.
param | variable | The name of an environment variable. |
param | value | A value to assign to variable. |
param | target | One of the enumeration values that specifies the location of the environment variable. |
DateTime IO
DateTime IO