symantic-6.0.0.20170623: Library for Typed Tagless-Final Higher-Order Composable DSL

Safe HaskellNone
LanguageHaskell2010

Language.Symantic.Typing.Document

Contents

Synopsis

Type Config_Doc_Type

newtype Config_Doc_Type Source #

Constructors

Config_Doc_Type 

Fields

docType :: forall src vs t d. Semigroup d => Doc_Text d => Doc_Color d => Config_Doc_Type -> Precedence -> Type src vs t -> d Source #

docTypes :: forall src vs ts d. Semigroup d => Doc_Text d => Doc_Color d => Config_Doc_Type -> Types src vs ts -> d Source #

var2Name :: Config_Doc_Type -> (Map IndexVar Name, Names) -> Type src vs t -> (Map IndexVar Name, Names) Source #

Return a Map associating a distinct Name for all the variables of the given Type.

Type Name

type Name = Text Source #

freshifyName :: Names -> Name -> Name Source #

Return given Name renamed a bit to avoid conflicting with any given Names.

poolNames :: [Name] Source #

Infinite list of unique Names: a, b, .., z, a1, b1 .., z1, a2, ..