Skip to content

Commit

Permalink
removing spcs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Aug 23, 2011
1 parent 37d7fa2 commit 90ca3cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Data/IP/Addr.hs
Expand Up @@ -13,7 +13,7 @@ import Text.Printf


{-| {-|
A unified IP data for 'IPv4' and 'IPv6'. A unified IP data for 'IPv4' and 'IPv6'.
To create this, use the data constructors. Or use 'read' @"192.0.2.1"@ :: 'IP', for example. Also, @"192.0.2.1"@ can be used as literal with OverloadedStrings. To create this, use the data constructors. Or use 'read' @"192.0.2.1"@ :: 'IP', for example. Also, @"192.0.2.1"@ can be used as literal with OverloadedStrings.
-} -}


data IP = IPv4 { ipv4 :: IPv4 } data IP = IPv4 { ipv4 :: IPv4 }
Expand Down
4 changes: 2 additions & 2 deletions Data/IP/Range.hs
Expand Up @@ -62,9 +62,9 @@ instance Show IPRange where


instance Read IPRange where instance Read IPRange where
readsPrec _ = parseIPRange readsPrec _ = parseIPRange

parseIPRange :: String -> [(IPRange,String)] parseIPRange :: String -> [(IPRange,String)]
parseIPRange cs = parseIPRange cs =
case runParser ip4range cs of case runParser ip4range cs of
(Just ip,rest) -> [(IPv4Range ip,rest)] (Just ip,rest) -> [(IPv4Range ip,rest)]
(Nothing,_) -> case runParser ip6range cs of (Nothing,_) -> case runParser ip6range cs of
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -5,7 +5,7 @@ This library can handle both IPv4 and IPv6 addresses.
The IP routing table is a finite map (or an associative array) based The IP routing table is a finite map (or an associative array) based
on the longest match. on the longest match.


The algorithm of the IP routing table is described in The algorithm of the IP routing table is described in
"Radish -- A Simple Routing Table Structure for CIDR" "Radish -- A Simple Routing Table Structure for CIDR"
and its PDF is found on the following page: and its PDF is found on the following page:


Expand Down

0 comments on commit 90ca3cf

Please sign in to comment.