projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-05-09 13:16:29 by simonmar]
[ghc-base.git]
/
Foreign
/
C
/
TypesISO.hs
diff --git
a/Foreign/C/TypesISO.hs
b/Foreign/C/TypesISO.hs
index
3d971f1
..
d11d93c
100644
(file)
--- a/
Foreign/C/TypesISO.hs
+++ b/
Foreign/C/TypesISO.hs
@@
-1,15
+1,13
@@
{-# OPTIONS -fno-implicit-prelude #-}
-----------------------------------------------------------------------------
{-# OPTIONS -fno-implicit-prelude #-}
-----------------------------------------------------------------------------
---
+-- |
-- Module : Foreign.C.TypesISO
-- Copyright : (c) The FFI task force 2001
-- Module : Foreign.C.TypesISO
-- Copyright : (c) The FFI task force 2001
--- License : BSD-style (see the file libraries/core/LICENSE)
+-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : ffi@haskell.org
--
-- Maintainer : ffi@haskell.org
--- Stability : experimental
--- Portability : non-portable
---
--- $Id: TypesISO.hs,v 1.1 2001/06/28 14:15:03 simonmar Exp $
+-- Stability : provisional
+-- Portability : portable
--
-- A mapping of C types defined by the ISO C standard to corresponding Haskell
-- types. Like CTypes, this is a cool hack...
--
-- A mapping of C types defined by the ISO C standard to corresponding Haskell
-- types. Like CTypes, this is a cool hack...
@@
-25,6
+23,7
@@
module Foreign.C.TypesISO
-- Typeable, Storable
, CClock(..), CTime(..),
-- Typeable, Storable
, CClock(..), CTime(..),
+ -- Instances of: Eq and Storable
, CFile, CFpos, CJmpBuf
) where
, CFile, CFpos, CJmpBuf
) where
@@
-64,12
+63,9
@@
INTEGRAL_TYPE(CSigAtomic,tyConCSigAtomic,"CSigAtomic",HTYPE_SIG_ATOMIC_T)
INTEGRAL_TYPE(CClock,tyConCClock,"CClock",HTYPE_CLOCK_T)
INTEGRAL_TYPE(CTime,tyConCTime,"CTime",HTYPE_TIME_T)
INTEGRAL_TYPE(CClock,tyConCClock,"CClock",HTYPE_CLOCK_T)
INTEGRAL_TYPE(CTime,tyConCTime,"CTime",HTYPE_TIME_T)
--- TODO: Instances. But which...? :-}
-
+-- FIXME: Implement and provide instances for Eq and Storable
data CFile = CFile
data CFile = CFile
-
data CFpos = CFpos
data CFpos = CFpos
-
data CJmpBuf = CJmpBuf
-- C99 types which are still missing include:
data CJmpBuf = CJmpBuf
-- C99 types which are still missing include: