| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
System
Contents
Synopsis
- data ByteOrder
- targetByteOrder :: ByteOrder
- os :: String
- isWindows :: Bool
- isMac :: Bool
- arch :: String
- compilerName :: String
- compilerVersion :: Version
- getNetworkInterfaces :: IO [NetworkInterface]
- data NetworkInterface = NetworkInterface {}
- data IPv4 = IPv4 !Word32
- data IPv6 = IPv6 !Word32 !Word32 !Word32 !Word32
- data MAC = MAC !Word8 !Word8 !Word8 !Word8 !Word8 !Word8
System info
Byte ordering.
Constructors
| BigEndian | most-significant-byte occurs in lowest address. |
| LittleEndian | least-significant-byte occurs in lowest address. |
Instances
| Bounded ByteOrder | |
| Enum ByteOrder | |
Defined in GHC.ByteOrder Methods succ :: ByteOrder -> ByteOrder # pred :: ByteOrder -> ByteOrder # fromEnum :: ByteOrder -> Int # enumFrom :: ByteOrder -> [ByteOrder] # enumFromThen :: ByteOrder -> ByteOrder -> [ByteOrder] # enumFromTo :: ByteOrder -> ByteOrder -> [ByteOrder] # enumFromThenTo :: ByteOrder -> ByteOrder -> ByteOrder -> [ByteOrder] # | |
| Eq ByteOrder | |
| Ord ByteOrder | |
| Read ByteOrder | |
| Show ByteOrder | |
targetByteOrder :: ByteOrder #
The byte ordering of the target machine.
Return True on Windows and False otherwise. A runtime version of #ifdef minw32_HOST_OS.
Equivalent to os == "mingw32", but: more efficient; doesn't require typing an easily
mistypeable string; actually asks about your OS not a library; doesn't bake in
32bit assumptions that are already false. </rant>
isWindows == (os == "mingw32")
compilerName :: String #
The Haskell implementation with which the program was compiled or is being interpreted.
The version of compilerName with which the program was compiled
or is being interpreted.
Network info
getNetworkInterfaces :: IO [NetworkInterface] #
Gets the address information for each of the network interfaces on the local computer.
data NetworkInterface #
Describes the basic configuration of a network interface. This definition is currently limited to just one address per family.
Constructors
| NetworkInterface | |
Instances
| Show NetworkInterface | |
Defined in Network.Info Methods showsPrec :: Int -> NetworkInterface -> ShowS # show :: NetworkInterface -> String # showList :: [NetworkInterface] -> ShowS # | |
| Storable NetworkInterface | |
Defined in Network.Info Methods sizeOf :: NetworkInterface -> Int # alignment :: NetworkInterface -> Int # peekElemOff :: Ptr NetworkInterface -> Int -> IO NetworkInterface # pokeElemOff :: Ptr NetworkInterface -> Int -> NetworkInterface -> IO () # peekByteOff :: Ptr b -> Int -> IO NetworkInterface # pokeByteOff :: Ptr b -> Int -> NetworkInterface -> IO () # peek :: Ptr NetworkInterface -> IO NetworkInterface # poke :: Ptr NetworkInterface -> NetworkInterface -> IO () # | |
Represents an IPv4 address (e.g. 172.23.21.1, 127.0.0.1)
Represents an IPv6 address (e.g. 2001:db8:85a3::8a2e:370:7334, ::1)