2 % (c) The AQUA Project, Glasgow University, 1994-1996
5 \section[CCall]{Module @CCall@}
8 {-# OPTIONS -fno-implicit-prelude #-}
11 CCallable(..), CReturnable(..),
19 %*********************************************************
21 \subsection{Classes @CCallable@ and @CReturnable@}
23 %*********************************************************
29 instance CCallable Char
30 instance CCallable Char#
31 instance CReturnable Char
33 instance CCallable Int
34 instance CCallable Int#
35 instance CReturnable Int
37 -- DsCCall knows how to pass strings...
38 instance CCallable [Char]
40 instance CCallable Float
41 instance CCallable Float#
42 instance CReturnable Float
44 instance CCallable Double
45 instance CCallable Double#
46 instance CReturnable Double
48 data Word = W# Word# deriving (Eq, Ord) -- Glasgow extension
50 instance CCallable Word
51 instance CCallable Word#
52 instance CReturnable Word
54 instance CReturnable () -- Why, exactly?