Safe Haskell | Safe-Infered |
---|
Language.Haskell.TH.Build.Convertible
- isUpperName :: Name -> Bool
- ifUpperThenElse :: (Name -> t) -> (Name -> t) -> Name -> t
- class Convertible a b where
- convert :: a -> b
- (&) :: Convertible a1 a => a1 -> [a] -> [a]
- expQ :: Convertible a ExpQ => a -> ExpQ
- expQs :: Convertible a [ExpQ] => a -> [ExpQ]
- patQ :: Convertible a PatQ => a -> PatQ
- patQs :: Convertible a [PatQ] => a -> [PatQ]
- typeQ :: Convertible a TypeQ => a -> TypeQ
- typeQs :: Convertible a [TypeQ] => a -> [TypeQ]
- name :: Convertible a Name => a -> Name
- tyVarBndr :: Convertible a TyVarBndr => a -> TyVarBndr
- conQ :: Convertible a ConQ => a -> ConQ
- cxtQ :: Convertible a CxtQ => a -> CxtQ
- strictTypeQ :: Convertible a StrictTypeQ => a -> StrictTypeQ
- strictTypeQs :: Convertible a [StrictTypeQ] => a -> [StrictTypeQ]
- decsQ :: Convertible a DecsQ => a -> DecsQ
- preconvert1 :: Convertible a b => (b -> c) -> a -> c
- preconvert2 :: (Convertible a1 b, Convertible a b1) => (b1 -> b -> c) -> a -> a1 -> c
- preconvert3 :: (Convertible a1 b, Convertible a2 b1, Convertible a b2) => (b2 -> b1 -> b -> c) -> a -> a2 -> a1 -> c
- preconvert4 :: (Convertible a1 b, Convertible a2 b1, Convertible a3 b2, Convertible a b3) => (b3 -> b2 -> b1 -> b -> c) -> a -> a3 -> a2 -> a1 -> c
- preconvert5 :: (Convertible a1 b, Convertible a2 b1, Convertible a3 b2, Convertible a4 b3, Convertible a b4) => (b4 -> b3 -> b2 -> b1 -> b -> c) -> a -> a4 -> a3 -> a2 -> a1 -> c
- preconvert6 :: (Convertible a1 b, Convertible a2 b1, Convertible a3 b2, Convertible a4 b3, Convertible a5 b4, Convertible a b5) => (b5 -> b4 -> b3 -> b2 -> b1 -> b -> c) -> a -> a5 -> a4 -> a3 -> a2 -> a1 -> c
- preconvert7 :: (Convertible a1 b, Convertible a2 b1, Convertible a3 b2, Convertible a4 b3, Convertible a5 b4, Convertible a6 b5, Convertible a b6) => (b6 -> b5 -> b4 -> b3 -> b2 -> b1 -> b -> c) -> a -> a6 -> a5 -> a4 -> a3 -> a2 -> a1 -> c
Documentation
isUpperName :: Name -> BoolSource
ifUpperThenElse :: (Name -> t) -> (Name -> t) -> Name -> tSource
class Convertible a b whereSource
Instances
(&) :: Convertible a1 a => a1 -> [a] -> [a]Source
Type restrictions of convert
expQ :: Convertible a ExpQ => a -> ExpQSource
expQs :: Convertible a [ExpQ] => a -> [ExpQ]Source
patQ :: Convertible a PatQ => a -> PatQSource
patQs :: Convertible a [PatQ] => a -> [PatQ]Source
typeQ :: Convertible a TypeQ => a -> TypeQSource
typeQs :: Convertible a [TypeQ] => a -> [TypeQ]Source
name :: Convertible a Name => a -> NameSource
tyVarBndr :: Convertible a TyVarBndr => a -> TyVarBndrSource
conQ :: Convertible a ConQ => a -> ConQSource
cxtQ :: Convertible a CxtQ => a -> CxtQSource
strictTypeQ :: Convertible a StrictTypeQ => a -> StrictTypeQSource
strictTypeQs :: Convertible a [StrictTypeQ] => a -> [StrictTypeQ]Source
decsQ :: Convertible a DecsQ => a -> DecsQSource
Function transformers
preconvert1 :: Convertible a b => (b -> c) -> a -> cSource
preconvert2 :: (Convertible a1 b, Convertible a b1) => (b1 -> b -> c) -> a -> a1 -> cSource
preconvert3 :: (Convertible a1 b, Convertible a2 b1, Convertible a b2) => (b2 -> b1 -> b -> c) -> a -> a2 -> a1 -> cSource
preconvert4 :: (Convertible a1 b, Convertible a2 b1, Convertible a3 b2, Convertible a b3) => (b3 -> b2 -> b1 -> b -> c) -> a -> a3 -> a2 -> a1 -> cSource
preconvert5 :: (Convertible a1 b, Convertible a2 b1, Convertible a3 b2, Convertible a4 b3, Convertible a b4) => (b4 -> b3 -> b2 -> b1 -> b -> c) -> a -> a4 -> a3 -> a2 -> a1 -> cSource
preconvert6 :: (Convertible a1 b, Convertible a2 b1, Convertible a3 b2, Convertible a4 b3, Convertible a5 b4, Convertible a b5) => (b5 -> b4 -> b3 -> b2 -> b1 -> b -> c) -> a -> a5 -> a4 -> a3 -> a2 -> a1 -> cSource
preconvert7 :: (Convertible a1 b, Convertible a2 b1, Convertible a3 b2, Convertible a4 b3, Convertible a5 b4, Convertible a6 b5, Convertible a b6) => (b6 -> b5 -> b4 -> b3 -> b2 -> b1 -> b -> c) -> a -> a6 -> a5 -> a4 -> a3 -> a2 -> a1 -> cSource