Changes between Version 7 and Version 8 of Language/Declarations

Show
Ignore:
Timestamp:
06/25/09 02:20:31 (5 years ago)
Author:
benl (IP: 150.203.160.45)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Language/Declarations

    v7 v8  
    4040     |   import  {  ModuleId;+  }  
    4141}}} 
     42 
     43Import the symbols that are exported by another module. 
     44 
     45The second form allows us to use the offside rule when writing the list of modules. For example: 
     46 
     47{{{ 
     48import Data.List 
     49       Data.Set 
     50       System.Console 
     51}}} 
     52 
     53[[br]] 
    4254 
    4355== !TopDecl == 
     
    8294Foreign imports define the type of an external symbol. 
    8395 
     96Foreign data imports import a type name from C land. If no kind is given then the kind is assumed to be * (value types). For example: 
     97 
     98{{{ 
     99foreign import data "String" String# :: % -> % 
     100foreign import data "Int32"  Int32# 
     101}}} 
     102 
    84103[[br]] 
    85104