lue-bird/elm-review-phantom-type/1.0.0

NOTE: the latest version is 1.0.2

Review.PhantomType

Reports choice type parameters that aren't used in the definition (often called "phantom types").

import NoUnused.CustomTypeConstructorArgs
import NoUnused.CustomTypeConstructors
import Review.PhantomType


config =
    [ Review.PhantomType.forbid


    -- to catch unused type variables
    , NoUnused.CustomTypeConstructors.rule []
    , NoUnused.CustomTypeConstructorArgs.rule
    ]
forbid : Rule

Rule to report phantom types.

More on the why and the alternatives in the readme