| License | BSD3 |
|---|---|
| Maintainer | Brent Yorgey <byorgey@cis.upenn.edu> |
| Stability | experimental |
| Portability | non-portable (see .cabal) |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Pattern.Base.Tuple
Description
Various types defined inductively as type families or data families on type-lists.
Functions
type family Fun (xs :: [*]) r #
Curried functions. We have
Fun '[x1, ..., xn] r = x1 -> ... -> xn -> r
Tuples
Mapping and distributing over tuples
class Distribute xs where #
Minimal complete definition
Instances
| Distribute ([] :: [*]) # | |
Defined in Data.Pattern.Base.Tuple | |
| (Uncurriable t, Tupable t, Distribute t) => Distribute (h ': t) # | |
Defined in Data.Pattern.Base.Tuple | |