concept first argument in category haskell

appears as: The first argument, first argument
Haskell in Depth

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

It is enough to implement this method alone in the TextShow instance. The first argument is an integer number from 0 to 11, which corresponds to the precedence of the outer context. The same precedence values are used in Haskell itself. For example, the precedence of function application is 10. In the implementation of showbPrec we use the precedence value to decide whether should we enclose the second argument with the parentheses or not.

Listing 8.10. Generating IP range database
genIPRangeDBSized :: Int -> Int -> Gen IPRangeDB
genIPRangeDBSized minLen maxLen =
    IPRangeDB <$> Gen.list (Range.constant minLen maxLen) genIPRange #1

genIPRangeDB :: Gen IPRangeDB
genIPRangeDB = do
  n1 <- Gen.integral (Range.constant 1 100) #2
  n2 <- Gen.integral (Range.constant n1 100) #3
  genIPRangeDBSized n1 n2