This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Data.Word | |
import Data.Int | |
import Foreign.Ptr | |
import Foreign.C.Types | |
main = c_MD5Final `seq` print "yay" | |
data MD5Context | |
foreign import ccall unsafe "__hsbase_MD5Init" | |
c_MD5Init :: Ptr MD5Context -> IO () | |
foreign import ccall unsafe "__hsbase_MD5Update" | |
c_MD5Update :: Ptr MD5Context -> Ptr Word8 -> CInt -> IO () | |
foreign import ccall unsafe "__hsbase_MD5Final" | |
c_MD5Final :: Ptr Word8 -> Ptr MD5Context -> IO () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment