Modulebase-4.20.2.0Haskell2010
GHC.IO.SubSystem
The IoSubSystem control interface. These methods can be used to disambiguate between the two operations.
The API of this module is unstable and not meant to be consumed by the general public.
If you absolutely must depend on it, make sure to use a tight upper
bound, e.g., base < 4.X rather than base < 5, because the interface can
change rapidly without much warning.
- 1 type
- 7 values
- Packagebase-4.20.2.0
- Exports8
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceSubSystem.hs
The I/O SubSystem to use in the program.
Instances4Enum, Eq, Show, Storable
Enum IoSubSystemDefined in ghc-internal-9.1003.0 · GHC.Internal.RTS.FlagsEq IoSubSystemDefined in ghc-internal-9.1003.0 · GHC.Internal.RTS.FlagsShow IoSubSystemDefined in ghc-internal-9.1003.0 · GHC.Internal.RTS.FlagsStorable IoSubSystemDefined in ghc-internal-9.1003.0 · GHC.Internal.RTS.Flags
Conditionally execute an action depending on the configured I/O subsystem. On POSIX systems always execute the first action. On Windows execute the second action if WINIO as active, otherwise fall back to the first action.
Infix version of conditional. posix ! windows == conditional posix windows