all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
6
Task/Variable-size-Get/Haskell/variable-size-get.hs
Normal file
6
Task/Variable-size-Get/Haskell/variable-size-get.hs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import Foreign
|
||||
|
||||
sizeOf (undefined :: Int) -- size of Int in bytes (4 on mine)
|
||||
sizeOf (undefined :: Double) -- size of Double in bytes (8 on mine)
|
||||
sizeOf (undefined :: Bool) -- size of Bool in bytes (4 on mine)
|
||||
sizeOf (undefined :: Ptr a) -- size of Ptr in bytes (4 on mine)
|
||||
Loading…
Add table
Add a link
Reference in a new issue