th-kinds-0.2: Automated kind inference in Template Haskell.

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.KindInference

Contents

Description

A module to infer the kind of a given type within Template Haskell. Warning: this implements its own kind inference system, and is therefore not guaranteed to work on all esoteric types. (That said, I have no examples where it doesn't work.)

Documentation

inferKind :: InferKind t => t -> Q (Either String Kind) Source #

Orphan instances

Ppr Char Source # 

Methods

ppr :: Char -> Doc #

ppr_list :: [Char] -> Doc #

(Ppr a, Ppr b) => Ppr (Either a b) Source # 

Methods

ppr :: Either a b -> Doc #

ppr_list :: [Either a b] -> Doc #