@@ -108,17 +108,18 @@ mkModulePathFromQName _ = error "mkModulePathFromQName: Not a qualified name"
108108
109109-- | State of the compiler.
110110data CompileState = CompileState
111- { _stateExports :: Map ModuleName (Set QName ) -- ^ Collects exports from modules
112- , stateRecordTypes :: [(QName ,[QName ])] -- ^ Map types to constructors
113- , stateRecords :: [(QName ,[QName ])] -- ^ Map constructors to fields
114- , stateNewtypes :: [(QName , Maybe QName , Type )] -- ^ Newtype constructor, destructor, wrapped type tuple
115- , stateImported :: [(ModuleName ,FilePath )] -- ^ Map of all imported modules and their source locations.
116- , stateNameDepth :: Integer -- ^ Depth of the current lexical scope.
117- , stateLocalScope :: Set Name -- ^ Names in the current lexical scope.
118- , stateModuleScope :: ModuleScope -- ^ Names in the module scope.
119- , stateModuleScopes :: Map ModuleName ModuleScope
120- , stateModuleName :: ModuleName -- ^ Name of the module currently being compiled.
111+ { _stateExports :: Map ModuleName (Set QName ) -- ^ Collects exports from modules
112+ , stateRecordTypes :: [(QName ,[QName ])] -- ^ Map types to constructors
113+ , stateRecords :: [(QName ,[QName ])] -- ^ Map constructors to fields
114+ , stateNewtypes :: [(QName , Maybe QName , Type )] -- ^ Newtype constructor, destructor, wrapped type tuple
115+ , stateImported :: [(ModuleName ,FilePath )] -- ^ Map of all imported modules and their source locations.
116+ , stateNameDepth :: Integer -- ^ Depth of the current lexical scope.
117+ , stateLocalScope :: Set Name -- ^ Names in the current lexical scope.
118+ , stateModuleScope :: ModuleScope -- ^ Names in the module scope.
119+ , stateModuleScopes :: Map ModuleName ModuleScope
120+ , stateModuleName :: ModuleName -- ^ Name of the module currently being compiled.
121121 , stateJsModulePaths :: Set ModulePath
122+ , stateUseFromString :: Bool
122123 } deriving (Show )
123124
124125-- | Things written out by the compiler.
0 commit comments