Copyright | (c) Abhinav Gupta 2015 |
---|---|
License | BSD3 |
Maintainer | Abhinav Gupta <mail@abhinavg.net> |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
Defines the different types Thrift supports at the protocol level.
TType
Represents the type of a Thrift value.
Objects of this type are tagged with one of the TType tags, so this type also acts as a singleton on the TTypes. It allows writing code that can enforce properties about the TType of values at compile time.
class Typeable a => IsTType a where Source
Typeclass used to map type-leve TTypes into TType
objects. All TType
tags are instances of this class.
Based on the context in which this is used, it will automatically
return the corresponding TType
object.
Used when the TType
for something is not known at compile time.
Typically, this will be pattern matched inside a case statement and code
that depends on the TType will be go there.
Tags
type TException = TStruct Source
exception