Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Data Types

Vincent Hanquez edited this page Mar 18, 2017 · 1 revision

Primitive Types

Not to be confused with PrimType

Apart from normal primitive types:

  • Int
  • Int8, Int16, Int32, Int64
  • Word8, Word16, Word32, Word64
  • Integer, Natural
  • Double (FP64), Float (FP32)
  • Char

Also defines those as primitive:

  • String
  • Hostname, IPv4, IPv6
  • UUID
  • FilePath, FileName

Qualification for primitive types:

  • Show instance that display the friendly value (e.g. an ipv6 address instead of the ipv6 byte content)
  • Special Typeable name
  • Strict & Unpacked (as much as possible)
  • need to be instance of Hashable, Storable

Composite Types

  • Array, MutableArray
  • Unboxed Array (UArray) and Unboxed Mutable Array (MUArray)
  • Array of Array (ChunkedUArray)
  • Strict Tuples (Tuple2, Tuple3, ...)
Clone this wiki locally