generic-lens-core-2.2.1.0: Generically derive traversals, lenses and prisms.
Copyright (C) 2020 Csongor Kiss
License BSD3
Maintainer Csongor Kiss <kiss.csongor.kiss@gmail.com>
Stability experimental
Portability non-portable
Safe Haskell None
Language Haskell2010

Data.Generics.Internal.Families.Collect

Description

Documentation

type family CollectTotalType t f :: TypeStat where ... Source #

Equations

CollectTotalType t ( C1 (' MetaCons ctor _ _) f) = AddToStat ctor (CountType t f) EmptyStat
CollectTotalType t ( M1 _ _ r) = CollectTotalType t r
CollectTotalType t (l :+: r) = MergeStat ( CollectTotalType t l) ( CollectTotalType t r)

type family CollectField t f :: TypeStat where ... Source #

Equations

CollectField t ( C1 (' MetaCons ctor _ _) f) = AddToStat ctor (CountField t f) EmptyStat
CollectField t ( M1 _ _ r) = CollectField t r
CollectField t (l :+: r) = MergeStat ( CollectField t l) ( CollectField t r)

type family (xs :: [ Symbol ]) \\ (ys :: [ Symbol ]) :: [ Symbol ] where ... infixr 5 Source #

Equations

xs \\ '[] = xs
'[] \\ xs = '[]
(x ': xs) \\ (y ': ys) = Sub' ( CmpSymbol x y) x y xs ys