Skip to content

Commit

Permalink
cabal format + hspec-discover
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Mar 15, 2023
1 parent aefe397 commit cca79e7
Showing 1 changed file with 80 additions and 69 deletions.
149 changes: 80 additions & 69 deletions iproute.cabal
Original file line number Diff line number Diff line change
@@ -1,72 +1,83 @@
Name: iproute
Version: 1.7.12
Author: Kazu Yamamoto <[email protected]>
Maintainer: Kazu Yamamoto <[email protected]>
License: BSD3
License-File: LICENSE
Homepage: http://www.mew.org/~kazu/proj/iproute/
Synopsis: IP Routing Table
Description: IP Routing Table is a tree of IP ranges
to search one of them on the longest
match base. It is a kind of TRIE with one
way branching removed. Both IPv4 and IPv6
are supported.
Category: Algorithms, Network
Cabal-Version: >= 1.10
Build-Type: Simple
Tested-With: GHC == 7.8.4
, GHC == 7.10.3
, GHC == 8.0.2
, GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.2
cabal-version: >=1.10
name: iproute
version: 1.7.12
license: BSD3
license-file: LICENSE
maintainer: Kazu Yamamoto <[email protected]>
author: Kazu Yamamoto <[email protected]>
tested-with:
ghc ==7.8.4 ghc ==7.10.3 ghc ==8.0.2 ghc ==8.2.2 ghc ==8.4.4
ghc ==8.6.5 ghc ==8.8.2

Library
Default-Language: Haskell2010
GHC-Options: -Wall
Exposed-Modules: Data.IP
Data.IP.Builder
Data.IP.Internal
Data.IP.RouteTable
Data.IP.RouteTable.Internal
Other-Modules: Data.IP.Addr
Data.IP.Mask
Data.IP.Op
Data.IP.Range
Build-Depends: base >= 4.9 && < 5
, appar
, byteorder
, bytestring
, containers
, network
if impl(ghc < 8.0)
Build-Depends: semigroups >= 0.17
if impl(ghc >= 8)
Default-Extensions: Strict StrictData
homepage: http://www.mew.org/~kazu/proj/iproute/
synopsis: IP Routing Table
description:
IP Routing Table is a tree of IP ranges
to search one of them on the longest
match base. It is a kind of TRIE with one
way branching removed. Both IPv4 and IPv6
are supported.

Test-Suite spec
Type: exitcode-stdio-1.0
Default-Language: Haskell2010
Hs-Source-Dirs: test
Ghc-Options: -Wall
Main-Is: Spec.hs
Other-Modules: RouteTableSpec
, BuilderSpec
, IPSpec
Build-Depends: base >= 4.6 && < 5
, hspec
, QuickCheck
, appar
, byteorder
, bytestring
, containers
, network
, safe
, iproute
if impl(ghc < 8.0)
Build-Depends: semigroups >= 0.17
category: Algorithms, Network
build-type: Simple

Source-Repository head
Type: git
Location: git://github.com/kazu-yamamoto/iproute.git
source-repository head
type: git
location: git://github.com/kazu-yamamoto/iproute.git

library
exposed-modules:
Data.IP
Data.IP.Builder
Data.IP.Internal
Data.IP.RouteTable
Data.IP.RouteTable.Internal

other-modules:
Data.IP.Addr
Data.IP.Mask
Data.IP.Op
Data.IP.Range

default-language: Haskell2010
ghc-options: -Wall
build-depends:
base >=4.9 && <5,
appar,
byteorder,
bytestring,
containers,
network

if impl(ghc <8.0)
build-depends: semigroups >=0.17

if impl(ghc >=8)
default-extensions: Strict StrictData

test-suite spec
type: exitcode-stdio-1.0
main-is: Spec.hs
build-tool-depends: hspec-discover:hspec-discover
hs-source-dirs: test
other-modules:
RouteTableSpec
BuilderSpec
IPSpec

default-language: Haskell2010
ghc-options: -Wall
build-depends:
base >=4.6 && <5,
hspec,
QuickCheck,
appar,
byteorder,
bytestring,
containers,
network,
safe,
iproute

if impl(ghc <8.0)
build-depends: semigroups >=0.17

0 comments on commit cca79e7

Please sign in to comment.