publicsuffix-0.20180825: The publicsuffix list exposed as proper Haskell types

Safe HaskellNone
LanguageHaskell2010

Data.PublicSuffix.Rules

Description

This module contains the parsed rules from the upstream publicsuffix list. The rules are autogenerated using Template-Haskell.

You should not need this module directly, all interesting functions are exposed in the PublicSuffix module. It is only exposed so that we can run tests on the actual rules list instead of having to mock the data. The list is not that long, so running exhaustive tests on the full list is feasible.

Documentation

data Rule Source #

Constructors

Rule 

Fields

  • isException :: !Bool

    Whether this rule is an exception or not.

  • ruleLabels :: ![String]

    The domain labels in reversed order, ie:

    "test.example.com" => ["com", "example", "test"]
Instances
Show Rule Source # 
Instance details

Defined in Data.PublicSuffix.Types

Methods

showsPrec :: Int -> Rule -> ShowS #

show :: Rule -> String #

showList :: [Rule] -> ShowS #