| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
Data.GI.CodeGen.Type
Description
An abstraction for representing type constructors. This is a very
 simplified version of Typeable, which we don't use directly
 to avoid compatibility headaches.
Documentation
This type represents the types found in GObject Introspection interfaces: the types of constants, arguments, etc.
Constructors
| TBasicType BasicType | |
| TError | GError  | 
| TVariant | GVariant  | 
| TGValue | GValue  | 
| TParamSpec | GParamSpec  | 
| TCArray Bool Int Int Type | Zero terminated, Array Fixed Size, Array Length, Element Type  | 
| TGArray Type | GArray  | 
| TPtrArray Type | GPtrArray  | 
| TByteArray | GByteArray  | 
| TGList Type | GList  | 
| TGSList Type | GSList  | 
| TGHash Type Type | GHashTable  | 
| TGClosure (Maybe Type) | GClosure containing the given API (if known)  | 
| TInterface Name | A reference to some API in the GIR  | 
Basic types. These are generally trivial to marshal, and the GIR assumes that they are defined.
Constructors
| TBoolean | gboolean  | 
| TInt | gint  | 
| TUInt | guint  | 
| TLong | glong  | 
| TULong | gulong  | 
| TInt8 | gint8  | 
| TUInt8 | guint8  | 
| TInt16 | gint16  | 
| TUInt16 | guint16  | 
| TInt32 | gint32  | 
| TUInt32 | guint32  | 
| TInt64 | gint64  | 
| TUInt64 | guint64  | 
| TFloat | gfloat  | 
| TDouble | gdouble  | 
| TUniChar | gunichar  | 
| TGType | GType  | 
| TUTF8 | gchar*, encoded as UTF-8  | 
| TFileName | gchar*, encoding a filename  | 
| TPtr | gpointer  | 
| TIntPtr | gintptr  | 
| TUIntPtr | guintptr  | 
| TShort | gshort  | 
| TUShort | gushort  | 
| TSize | gsize  | 
| TSSize | gssize  | 
| Ttime_t | time_t  | 
| Toff_t | off_t  | 
| Tdev_t | dev_t  | 
| Tgid_t | gid_t  | 
| Tpid_t | pid_t  | 
| Tsocklen_t | socklen_t  | 
| Tuid_t | uid_t  | 
Instances
| Show BasicType Source # | |
| Eq BasicType Source # | |
| Ord BasicType Source # | |
A fully applied type.
typeShow :: TypeRep -> Text Source #
Give a valid Haskell source representation of the given
 TypeRep.