iproute icon indicating copy to clipboard operation
iproute copied to clipboard

IP Routing Table in Haskell

Results 12 iproute issues
Sort by recently updated
recently updated
newest added

1st of all thanks for creating and sharing this library! My concern is about the lack of some "common" instances for some of the types. Examples: **What about support these...

In the Stackage Nightly build: ``` ./Data/IP/RouteTable/Internal.hs:102: failure in expression `(empty :: IPRTable IPv4 ()) == fromList []' [94/192286] expected: True but got: ^ :23:11: error: Not in scope: type...

Fail to compile with GHCJS due `network` dependency. Possible workaround is cabal flag that disables parts that are depend on network package. Log: ``` building '/nix/store/b588qzd6346b74w0lxzxch4dl65hlhvg-cabal2nix-auth-api.drv'... installing these derivations will...

Citing from https://hydra.nixos.org/build/85819909: ~~~ Running 2 test suites... Test suite doctest: RUNNING... ./Data/IP/Op.hs:61: failure in expression `makeAddrRange ("2001:DB8::1" :: IPv6) 16 >:> makeAddrRange "2001:DB8::1" 32' expected: True but got: ***...

At the moment, IPRTable is quite a hungry beast. For example, a table of almost 700k entries without any data occupies at least several hundreds megabytes. This small test [1]...

We have recently encountered a need for something like that. If it was implemented, would you accept the PR?

While building iproute on i686 and armv7 Linux with ghc-7.10.3 I noted some warnings: ``` Preprocessing library iproute-1.7.0... [1 of 8] Compiling Data.IP.Addr ( Data/IP/Addr.hs, dist/build/Data/IP/Addr.o ) Data/IP/Addr.hs:128:50: Warning: Literal...

GHC 8.0.1 prints these: ``` /home/user/iproute/Data/IP/Op.hs:121:1: warning: [-Wredundant-constraints] * Redundant constraint: Addr a * In the type signature for: addrRangePair :: Addr a => AddrRange a -> (a, Int) [5...

Add parse from ByteString and Text

Currently various `from...`/`to...` functions work with just `[Int]`. I'd suggest to: 1. Return appropriate data types, that is `Word8` for `to/fromIPv4` and `to/fromIPv6b`, and `Word16` for `to/fromIPv6`. 2. Add variants...