File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -56,8 +56,10 @@ module ArrayFire.Types
5656 , BorderType (.. )
5757 , Storage (.. )
5858 , AFDType (.. )
59+ , AFDtype (.. )
5960 , ColorMap (.. )
6061 ) where
6162
6263import ArrayFire.Exception
6364import ArrayFire.Internal.Types
65+ import ArrayFire.Internal.Defines
You can’t perform that action at this time.
0 commit comments