Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Language = Language ()
- type TSSymbol = Word16
- data SymbolType
- ts_language_symbol_count :: Ptr Language -> Word32
- ts_language_symbol_name :: Ptr Language -> TSSymbol -> CString
- ts_language_symbol_type :: Ptr Language -> TSSymbol -> Int
- class (Bounded s, Enum s, Ix s, Ord s, Show s) => Symbol s where
- symbolType :: s -> SymbolType
- mkSymbolDatatype :: Name -> Ptr Language -> Q [Dec]
- addDependentFileRelative :: FilePath -> Q [Dec]
- languageSymbols :: Ptr Language -> IO [(SymbolType, String)]
- symbolToName :: SymbolType -> String -> (SymbolType, String)
Documentation
Language () |
data SymbolType Source #
Instances
class (Bounded s, Enum s, Ix s, Ord s, Show s) => Symbol s where Source #
symbolType :: s -> SymbolType Source #
mkSymbolDatatype :: Name -> Ptr Language -> Q [Dec] Source #
TemplateHaskell construction of a datatype for the referenced Language.
languageSymbols :: Ptr Language -> IO [(SymbolType, String)] Source #
symbolToName :: SymbolType -> String -> (SymbolType, String) Source #