ddc-build-0.4.3.1: Disciplined Disciple Compiler build framework.

Safe HaskellNone
LanguageHaskell98

DDC.Build.Language

Synopsis

Documentation

data Language Source #

Existential container for a language fragment, and the dictionaries we need to work with its type parameters.

Constructors

(Typeable n, Ord n, Show n, Pretty n, Pretty (err (AnTEC SourcePos n)), Pretty (err (AnTEC () n)), NFData n, CompoundName n) => Language (Bundle s n err) 

data Bundle s n err Source #

Existential container for a language fragment, the simplifier for it, and the dictionaries we need to work with its type parameters.

Constructors

Bundle 

Fields

data Fragment n err :: * -> (* -> *) -> * #

Carries all the information we need to work on a particular fragment of the Disciple Core language.

Constructors

Fragment 

Fields

Instances

Show (Fragment n err) 

Methods

showsPrec :: Int -> Fragment n err -> ShowS #

show :: Fragment n err -> String #

showList :: [Fragment n err] -> ShowS #

languages :: [(String, Language)] Source #

Supported language profiles.

One of Tetra, Salt, Eval, Flow, Zero.

languageOfExtension :: String -> Maybe Language Source #

Return the language fragment definition corresponding to the given file extension. eg dct gives the definition of the Tetra language.