Skip to content

Commit 0634a49

Browse files
committed
Document and expose AFDtype.
1 parent bb353f6 commit 0634a49

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/ArrayFire/Internal/Defines.hsc

+8-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,14 @@ newtype AFErr = AFErr { afError :: CInt }
4242
, afErrUnknown = AF_ERR_UNKNOWN
4343
}
4444

45-
newtype AFDtype = AFDtype { afDType :: CInt }
46-
deriving (Show, Eq, Storable)
47-
45+
-- | Low-level for representation of ArrayFire types
46+
newtype AFDtype
47+
= AFDtype
48+
{ afDType :: CInt
49+
-- ^ Value corresponding to ArrayFire type
50+
} deriving (Show, Eq, Storable)
51+
52+
-- | Enums for AFDtype
4853
#{enum AFDtype, AFDtype
4954
, f32 = f32
5055
, c32 = c32

src/ArrayFire/Types.hs

+2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ module ArrayFire.Types
5656
, BorderType (..)
5757
, Storage (..)
5858
, AFDType (..)
59+
, AFDtype (..)
5960
, ColorMap (..)
6061
) where
6162

6263
import ArrayFire.Exception
6364
import ArrayFire.Internal.Types
65+
import ArrayFire.Internal.Defines

0 commit comments

Comments
 (0)