Changes between Version 7 and Version 8 of Language/Declarations
- Timestamp:
- 06/25/09 02:20:31 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Language/Declarations
v7 v8 40 40 | import { ModuleId;+ } 41 41 }}} 42 43 Import the symbols that are exported by another module. 44 45 The second form allows us to use the offside rule when writing the list of modules. For example: 46 47 {{{ 48 import Data.List 49 Data.Set 50 System.Console 51 }}} 52 53 [[br]] 42 54 43 55 == !TopDecl == … … 82 94 Foreign imports define the type of an external symbol. 83 95 96 Foreign 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 {{{ 99 foreign import data "String" String# :: % -> % 100 foreign import data "Int32" Int32# 101 }}} 102 84 103 [[br]] 85 104
