Limit the number of values allowed on a variant
zeroOrOne : Review.Rule.Rule
Reports variant definitions that have multiple attached values
config =
[ Review.VariantValueCount.zeroOrOne
]
type User
= User String Time.Posix
type User
= User { name : String, registrationTime : Time.Posix }
dependency variants with multiple arguments are also ok
import List.NonEmpty exposing (NonEmpty(..))
notReported =
List.NonEmpty.NonEmpty 'H' [ 'e', 'l', 'l', 'o' ]