HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehosc-0.20Haskell2010

Sound.Osc.Datum

Osc data types.

  • 6 types
  • 26 values
  • Packagehosc-0.20
  • Exports32
  • LanguageHaskell2010
  • LicenceGPL-3.0-only
  • SourceDatum.hs

Datum

13 declarations
typetype Ascii = ByteString
#

Type for Ascii strings (strict Char8 ByteString)

typetype Time = Double
#

A real-valued time stamp. For Osc proper this is an Ntp64 time in real-valued (fractional) form. For SuperCollider Nrt programs this is elapsed time since the start of the score. This is the primary form of timestamp used by hosc.

Datum types

7 declarations

Generalised element access

2 declarations

Constructors

7 declarations
valueint32 :: Integral n => n -> Datum
#

Type generalised Int32.

int32 (1::Int32) == int32 (1::Integer)
d_int32 (int32 (maxBound::Int32)) == maxBound
int32 (((2::Int) ^ (64::Int))::Int) == Int32 0
valueint64 :: Integral n => n -> Datum
#

Type generalised Int64.

int64 (1::Int32) == int64 (1::Integer)
d_int64 (int64 (maxBound::Int64)) == maxBound
valuefloat :: Real n => n -> Datum
#

Type generalised Float.

float (1::Int) == float (1::Double)
floatRange (undefined::Float) == (-125,128)
isInfinite (d_float (float (encodeFloat 1 256 :: Double))) == True
valuedouble :: Real n => n -> Datum
#

Type generalised Double.

double (1::Int) == double (1::Double)
double (encodeFloat 1 256 :: Double) == Double 1.157920892373162e77

Descriptor

3 declarations
valuesignatureFor :: [Datum] -> String
#

Message argument types are given by a signature.

signatureFor [Int32 1,Float 1,string "1"] == ",ifs"
valuedescriptor :: [Datum] -> Ascii
#

The descriptor is an Ascii encoded signature.

descriptor [Int32 1,Float 1,string "1"] == ascii ",ifs"