concept iplookup in category haskell

appears as: iplookup, iplookup
Haskell in Depth

This is an excerpt from Manning's book Haskell in Depth.

Directory tree:
data
  tests
    iplookup
  texts
  benchmarks
    iplookup

In the iplookup example, we could define a library containing the IPTypes, ParseIP, and LookupIP modules. The following cabal-file entry does exactly that:

test-suite iplookup-test
  type: exitcode-stdio-1.0
  main-is: Test.hs
  other-modules:
  hs-source-dirs:
      tests/iplookup
  build-depends:
      iplookup-lib
    , tasty >=0.11 && <1.4
    , <other dependencies>
  default-language: Haskell2010