Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- matcher :: [Match] -> Exp
- productGetter :: Name -> Int -> Int -> Exp
- productSetter :: Name -> Int -> Int -> Exp
- adtConstructorNarrower :: Name -> Int -> Exp
- enumConstructorToBool :: Name -> Exp
- singleConstructorAdtToTuple :: Name -> Int -> Exp
- tupleToProduct :: Name -> Int -> Exp
- namedFieldSetter :: Name -> Exp
Documentation
:: Name | Constructor name. |
-> Int | Total amount of members. |
-> Int | Index of the member. |
-> Exp | Lambda expression of the following form: product -> member |
Lambda expression, which extracts a product member by index.
:: Name | Constructor name. |
-> Int | Total amount of members. |
-> Int | Index of the member. |
-> Exp | Lambda expression of the following form: product -> member -> product |
Lambda expression, which sets a product member by index.
enumConstructorToBool :: Name -> Exp Source #
namedFieldSetter :: Name -> Exp Source #