Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
LogIp and SubnetMask
- newtype SubnetMask = SubnetMask {}
- newtype LogIp = LogIp {}
- mkSubnetMask :: String -> SubnetMask
- mkLogIp :: String -> LogIp
- showIp :: [String] -> String
- readIp :: String -> [String]
- readLogIp :: LogIp -> Binary
- readSubnetMask :: SubnetMask -> Binary
- showLogIp :: Binary -> LogIp
- showSubnetMask :: Binary -> SubnetMask
- modifyLogIp :: (String -> String) -> LogIp -> LogIp
- addOneLogIp :: LogIp -> LogIp
- isLogIp :: String -> Bool
- isSubnetMask :: String -> Bool
- removeInvalidZeros :: (Num a, Eq a) => [a] -> [a]
Documentation
newtype SubnetMask Source
mkSubnetMask :: String -> SubnetMask Source
TODO Subnetmasks take non base2 digits check hosts.hs, hosts or hosts.exe
readSubnetMask :: SubnetMask -> Binary Source
showSubnetMask :: Binary -> SubnetMask Source
addOneLogIp :: LogIp -> LogIp Source
isSubnetMask :: String -> Bool Source
removeInvalidZeros :: (Num a, Eq a) => [a] -> [a] Source