Copyright | 2009 Balazs Komuves 2013 shelarcy |
---|---|
License | BSD-style |
Maintainer | shelarcy@gmail.com |
Stability | Provisional |
Portability | Non-portable (Win32 API) |
Safe Haskell | Safe |
Language | Haskell2010 |
Utilities for calling Win32 API
- try :: String -> (LPTSTR -> UINT -> IO UINT) -> UINT -> IO String
- tryWithoutNull :: String -> (LPTSTR -> UINT -> IO UINT) -> UINT -> IO String
- try' :: Storable a => String -> (Ptr a -> PDWORD -> IO BOOL) -> DWORD -> IO [a]
- maybePtr :: Maybe (Ptr a) -> Ptr a
- ptrToMaybe :: Ptr a -> Maybe (Ptr a)
- maybeNum :: Num a => Maybe a -> a
- numToMaybe :: (Eq a, Num a) => a -> Maybe a
- peekMaybe :: Storable a => Ptr a -> IO (Maybe a)
- withMaybe :: Storable a => Maybe a -> (Ptr a -> IO b) -> IO b