Hannes Siebenhandl pushed to branch wip/fendor/dep-json-link-nodes at Glasgow Haskell Compiler / GHC Commits: 9a5bdd7f by fendor at 2026-11-19T09:56:13+01:00 `ghc -M`: Add support for link nodes to json output `LinkNode`s are part of the module graph and indicate that a certain linking artefact is to be produced from other module graph nodes. We expose `LinkNode`s in the output of `ghc -M -dep-json`, allowing consumers to see when a linking artefact is to be produced. Only the JSON output format of `ghc -M` supports `LinkNode` as it is unclear how the Makefile output should be retrofitted to express the dependencies, and whether it would require a feature guard. Closes #28007 - - - - - 24 changed files: - + changelog.d/make-depends-link-nodes - compiler/GHC/Driver/MakeFile.hs - docs/users_guide/make-depends-json-schema-1_0.json - testsuite/tests/driver/mkdepend/all.T - + testsuite/tests/driver/mkdepend/mhu04/app/Main.hs - + testsuite/tests/driver/mkdepend/mhu04/app/Utils.hs - + testsuite/tests/driver/mkdepend/mhu04/lib/Lib.hs - + testsuite/tests/driver/mkdepend/mhu04/lib/Lib/Internal.hs - + testsuite/tests/driver/mkdepend/mhu04/unitApp - + testsuite/tests/driver/mkdepend/mhu04/unitLib - + testsuite/tests/driver/mkdepend/mhu05/app/Main.hs - + testsuite/tests/driver/mkdepend/mhu05/lib/Lib.hs - + testsuite/tests/driver/mkdepend/mhu05/lib/Lib/Internal.hs - + testsuite/tests/driver/mkdepend/mhu05/test/Spec.hs - + testsuite/tests/driver/mkdepend/mhu05/unitApp - + testsuite/tests/driver/mkdepend/mhu05/unitLib - + testsuite/tests/driver/mkdepend/mhu05/unitTest - + testsuite/tests/driver/mkdepend/mkdepend02.dep-json - + testsuite/tests/driver/mkdepend/mkdepend02/Main.hs - + testsuite/tests/driver/mkdepend/mkdepend_bkp_01/bkp01.bkp - + testsuite/tests/driver/mkdepend/mkdepend_mhu04.dep-json - + testsuite/tests/driver/mkdepend/mkdepend_mhu04.dep-makefile - + testsuite/tests/driver/mkdepend/mkdepend_mhu05.dep-json - + testsuite/tests/driver/mkdepend/mkdepend_mhu05.dep-makefile Changes: ===================================== changelog.d/make-depends-link-nodes ===================================== @@ -0,0 +1,4 @@ +section: compiler +synopsis: Expose link nodes in `ghc -M -dep-json` output +issues: #28007 +mrs: !16848 ===================================== compiler/GHC/Driver/MakeFile.hs ===================================== @@ -44,6 +44,7 @@ import GHC.Types.Unique.Set (UniqSet) import GHC.Types.Unique.Set qualified as UniqSet import GHC.Types.UnresolvedImport +import GHC.Unit.Env qualified as UnitEnv import GHC.Unit.Finder import GHC.Unit.Home.Graph (HomeUnitEnv (homeUnitEnv_dflags)) import GHC.Unit.Info @@ -189,9 +190,11 @@ doMkDependModuleGraph dflags module_graph = do -- | A 'DepNode' is a direct translation of a 'ModuleGraphNode' that -- can be serialised to a Makefile or json lines format. -data DepNode = - ModuleDepNode HomeModuleNode [Dep] - -- ^ A dependency node of a home module with its dependencies +data DepNode + = ModuleDepNode HomeModuleNode [Dep] + -- ^ A dependency node of a home module with its dependencies. + | LinkDepNode DepLink [DepLinkNode] + -- ^ A link node is the result of linking some elements from the module graph. -- | A home module node. -- Everything we know about home modules that can be serialised. @@ -221,6 +224,7 @@ data PreprocessingNode = PreprocessingNode { pn_preprocessor :: String -- ^ The preprocessor. , pn_arguments :: [String] + -- ^ Arguments to be passed to the preprocessor. } -- | A dependency edge on another module, or cpp path. @@ -249,6 +253,33 @@ data Dep -- ^ Path to the @#include@d path. } +-- | A link node in the module graph. +data DepLink + = DepLink + { link_output :: !UnitId + -- ^ The 'UnitId' of the home unit we are performing linking on. + , link_type :: !GhcLink + -- ^ What is the type of this link node? + } + +-- | A linking dependency that makes up the requirements to link something. +data DepLinkNode + = DepLink_Unit !UnitId + -- ^ A dependency on an ad-hoc instantiated unit. + -- + -- At this point of time, such a dependency won't be generated, as @-M@ + -- doesn't work with backpack, thus there will never be an ad-hoc instantiated unit. + | DepLink_Module !ModuleNameWithIsBoot !UnitId + -- ^ A dependency on a home module. + | DepLink_HomeUnit {-# UNPACK #-} !UnitId + -- ^ A dependency on the linking node of a home unit. + -- This is useful when the linking output of a home unit depends on the linking node of + -- another home unit. + | DepLink_ExtUnit {-# UNPACK #-} !UnitId + -- ^ A dependency on an external unit, i.e. a dependency loaded from the 'UnitState'. + -- + -- At this point of time, such a dependency won't be generated by 'downsweep'. + -- | 'DependencyWriter' is a backend for outputting 'DepNode' in a specific -- output format. data DependencyWriter = DependencyWriter @@ -386,7 +417,21 @@ processDeps hsc_env _ (AcyclicSCC (InstantiationNode _uid node)) mkPlainErrorMsgEnvelope noSrcSpan $ GhcDriverMessage $ DriverInstantiationNodeInDependencyGeneration node -processDeps _ _ (AcyclicSCC (LinkNode {})) = return Nothing +processDeps hsc_env _ (AcyclicSCC (LinkNode keys unitId)) = do + let + toLinkNodeDep = \ case + NodeKey_Unit iu -> DepLink_Unit $ virtualUnitId iu + NodeKey_Module node -> DepLink_Module (mnkModuleName node) (mnkUnitId node) + NodeKey_Link uid -> DepLink_HomeUnit uid + NodeKey_ExternalUnit uid -> DepLink_ExtUnit uid + + linkNode = DepLink + { link_output = unitId + , link_type = ghcLink $ UnitEnv.ue_unitFlags unitId (hsc_unit_env hsc_env) + } + + pure $ Just $ LinkDepNode linkNode (map toLinkNodeDep keys) + processDeps _ _ (AcyclicSCC (UnitNode {})) = return Nothing processDeps _ _ (AcyclicSCC (ModuleNode _ (ModuleNodeFixed {}))) -- No dependencies needed for fixed modules (already compiled) @@ -507,6 +552,9 @@ initFileDepWriter logger root tmpfs tmpdir suffixes output = do { dw_writeDependency = \ case ModuleDepNode node deps -> do traverse_ (depStream_write stream) (dependencyRules root suffixes node deps) + LinkDepNode _node _deps -> do + -- Makefile can't handle 'LinkDepNode' + pure () , dw_endWriter = depStream_close stream , dw_onError = depStream_onError stream } @@ -690,6 +738,8 @@ initJsonDepWriter logger tmpfs tmpdir output = do depStream_write stream (renderJsonl payload) -- Cache external deps we already reported in the past updateJson json_var $ cacheExternalDepsJson newExtUnits + LinkDepNode node deps -> do + depStream_write stream $ renderJsonl $ linkNodeJson node deps , dw_endWriter = depStream_close stream , dw_onError = depStream_onError stream } @@ -757,7 +807,7 @@ renderJsonl output = -- Payload for -dep-json -- | State of the @-dep-json@ dependency generation. -data DepJson = DepJson +newtype DepJson = DepJson { externalDeps :: Set.Set ExtUnitDep -- ^ The external units we have already published/generated. -- We show each external unit exactly once, before the first time they are referenced. @@ -769,13 +819,13 @@ data DepJson = DepJson -- when a sensible default can be assumed. -- For example, the @boot@ is only present in the final json object, if it is 'IsBoot'. data HomeUnitDep = HomeUnitDep - { unitId :: UnitId - , packageName :: Maybe String - , modWithIsBoot :: ModuleWithIsBoot - , source :: OsPath - , imports :: ImportDeps - , cpp :: Set.Set OsPath - , preprocessor :: Maybe PreprocessingNode + { unitId :: !UnitId + , packageName :: !(Maybe String) + , modWithIsBoot :: !ModuleWithIsBoot + , source :: !OsPath + , imports :: !ImportDeps + , cpp :: !(Set.Set OsPath) + , preprocessor :: !(Maybe PreprocessingNode) } addImport :: ImportDep -> HomeUnitDep -> HomeUnitDep @@ -805,9 +855,9 @@ newtype ImportDeps = ImportDeps -- 'IsBootInterface' if it is 'IsBoot'. This allows us to express the default case (a normal, non-source import) -- as simply the module name. data ImportDep = ImportDep - { imp_mod :: Module - , imp_level :: ImportLevel - , imp_isBoot :: IsBootInterface + { imp_mod :: !Module + , imp_level :: !ImportLevel + , imp_isBoot :: !IsBootInterface } deriving (Eq, Ord) mkImportDep :: Module -> ImportLevel -> IsBootInterface -> ImportDep @@ -818,10 +868,10 @@ mkImportDep modl level isBoot = ImportDep } data ExtUnitDep = ExtUnitDep - { extUnitId :: UnitId + { extUnitId :: !UnitId -- ^ The 'UnitId' of a unit. This is assumed to be globally unique. , extUnitName :: String - , extUnitPackageId :: DPackageId + , extUnitPackageId :: !DPackageId } deriving (Eq, Ord) newtype DPackageId = DPackageId PackageId @@ -830,11 +880,30 @@ newtype DPackageId = DPackageId PackageId instance Ord DPackageId where DPackageId (PackageId d1) `compare` DPackageId (PackageId d2) = d1 `lexicalCompareFS` d2 +-- | Json representation of a 'LinkNode'. +data LinkNodeDep = LinkNodeDep + { linkNodeUid :: !UnitId + -- ^ The 'UnitId' of the home unit we are producing a link node for. + , linkNodeType :: !GhcLink + , linkNodeModuleDeps :: !(Map.Map UnitId (Set.Set ModuleNameWithIsBoot)) + -- ^ Module dependencies grouped by 'UnitId'. + , linkNodeUnitDeps :: !(Set.Set UnitId) + -- ^ Backpack unit instantiation. + , linkNodeHomeUnitDeps :: !(Set.Set UnitId) + -- ^ Dependencies on other home unit 'LinkNode's. + , linkNodeExtUnitDeps :: !(Set.Set UnitId) + -- ^ Dependencies on external 'UnitId's. + } {- Note [ghc -M -dep-json output format] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The instance of 'ToJson' 'DepJson' must conform to the JSON schema -specified in docs/users_guide/make-depends-json-schema-1_0.json. +The following instances must conform to the JSON schema: + +* 'ToJson' 'HomeUnitDep' +* 'ToJson' 'ExtUnitDep' +* 'ToJson' 'LinkNodeDep' + +The instances must conform to docs/users_guide/make-depends-json-schema-1_0.json. When the schema is altered, please bump the version. If the content is altered in a backwards compatible way, update the minor version (e.g. 1.3 ~> 1.4). @@ -933,6 +1002,50 @@ instance ToJson ExtUnitDep where where showPackageId (DPackageId (PackageId pid)) = unpackFS pid +-- See Note [ghc -M -dep-json output format] +instance ToJson LinkNodeDep where + json LinkNodeDep{linkNodeUid, linkNodeType, linkNodeModuleDeps, linkNodeUnitDeps, linkNodeHomeUnitDeps, linkNodeExtUnitDeps} = + JSObject + [ ("unit-id", JSString $ unitIdString linkNodeUid) + , ("link-type", linkTypeJson linkNodeType) + , ("links", JSArray $ concat + [ map renderMods (Map.toList linkNodeModuleDeps) + , map (JSString . unitIdString) (Set.toList linkNodeUnitDeps) + , map (JSString . unitIdString) (Set.toList linkNodeHomeUnitDeps) + , map (JSString . unitIdString) (Set.toList linkNodeExtUnitDeps) + ]) + ] + where + linkTypeJson :: GhcLink -> JsonDoc + linkTypeJson = JSString . \ case + NoLink{} -> panic "Received -no-link, but a link node must not exist with -no-link." + LinkExecutable{} -> "executable" + LinkInMemory{} -> "in-memory" + LinkDynLib{} -> "dynamic-library" + LinkBytecodeLib{} -> "bytecode-library" + LinkStaticLib{} -> "static-library" + LinkMergedObj{} -> "merged-object" + + renderMods (u, ms) = + JSObject + [ ("unit-id", JSString $ unitIdString u) + , ("modules", JSArray $ map moduleKey (Set.toList ms)) + ] + + + moduleNameJson m = JSString $ moduleNameString m + + moduleKey :: ModuleNameWithIsBoot -> JsonDoc + moduleKey t = + case gwib_isBoot t of + NotBoot -> moduleNameJson (gwib_mod t) + IsBoot -> JSObject + [ ("module", moduleNameJson (gwib_mod t)) + -- Redundant check, but the compiler will fix it and + -- this feels like it might avoid bugs in the future. + , ("boot", JSBool $ gwib_isBoot t == IsBoot) + ] + cacheExternalDepsJson :: Set.Set ExtUnitDep -> DepJson -> DepJson cacheExternalDepsJson extUnits (DepJson e0) = DepJson @@ -955,7 +1068,7 @@ homeUnitDeps HomeModuleNode {..} deps = , imports = ImportDeps Map.empty } - go (extDeps, node_data) = \ case + go (!extDeps, node_data) = \ case DepHi {dep_mod, dep_local, dep_unit, dep_boot, dep_level} | dep_local -> (extDeps, addImport (mkImportDep dep_mod dep_level dep_boot) node_data) @@ -982,6 +1095,32 @@ homeUnitDeps HomeModuleNode {..} deps = DepCpp {dep_path} -> (extDeps, addCpp dep_path node_data) +linkNodeJson :: DepLink -> [DepLinkNode] -> LinkNodeDep +linkNodeJson (DepLink uid linkType) deps = + LinkNodeDep + { linkNodeUid = uid + , linkNodeType = linkType + , linkNodeModuleDeps = allMods + , linkNodeUnitDeps = units + , linkNodeHomeUnitDeps = homeUids + , linkNodeExtUnitDeps = extUids + } + where + (!extUids, !homeUids, !units, !allMods) = foldl' go (Set.empty, Set.empty, Set.empty, Map.empty) deps + + go (ext, homeUid, unit, mods) = \ case + DepLink_Module modName u -> + let + newMods = Map.insertWith (Set.union) u (Set.singleton modName) mods + in + (ext, homeUid, unit, newMods) + DepLink_Unit uid -> + (ext, homeUid, Set.insert uid unit, mods) + DepLink_HomeUnit uid -> + (ext, Set.insert uid homeUid, unit, mods) + DepLink_ExtUnit uid -> + (Set.insert uid ext, homeUid, unit, mods) + ----------------------------------------------------------------- -- Module cycles ----------------------------------------------------------------- ===================================== docs/users_guide/make-depends-json-schema-1_0.json ===================================== @@ -3,8 +3,9 @@ "title": "GHC dependencies", "description": "The dependency graph of a Haskell program.", "oneOf": [ - { "$ref": "#/definitions/home-module" }, - { "$ref": "#/definitions/external-unit" } + { "$ref": "#/definitions/external-unit" }, + { "$ref": "#/definitions/module" }, + { "$ref": "#/definitions/link" } ], "definitions": { "external-unit": { @@ -29,17 +30,17 @@ "module-name": { "type": "string" }, - "home-module": { + "module": { "type": "object", "properties": { "module": { "$ref": "#/definitions/module-name" }, "unit-id": { "$ref": "#/definitions/unit-id" }, "package-name": { "$ref": "#/definitions/package-name" }, - "source": { "$ref": "#/definitions/home-module-source" }, - "boot": { "type": "boolean" }, + "source": { "$ref": "#/definitions/module-source" }, + "boot": { "$ref": "#/definitions/boot" }, "includes": { "type": "array", - "items": { "$ref": "#/definitions/home-module-include" } + "items": { "$ref": "#/definitions/module-include" } }, "imports": { "type": "object", @@ -48,15 +49,15 @@ "items": { "$ref": "#/definitions/import" } } }, - "preprocessor": { "$ref": "#/definitions/home-module-preprocessor" } + "preprocessor": { "$ref": "#/definitions/module-preprocessor" } }, "required": ["module", "unit-id", "source"], "unevaluatedProperties": false }, - "home-module-source": { + "module-source": { "type": "string" }, - "home-module-include": { + "module-include": { "type": "string" }, "home-module-preprocessor": { @@ -81,17 +82,66 @@ "properties": { "module": { "$ref": "#/definitions/module-name" }, "level": { "$ref": "#/definitions/import-level" }, - "boot": { "type": "boolean" } + "boot": { "$ref": "#/definitions/boot" } }, "required": ["module"], "unevaluatedProperties": false } ] }, + "boot": { + "type": "boolean", + "default": false + }, "import-level": { "type": "string", "enum": ["normal", "quote", "splice"], "default": "normal" + }, + "link": { + "type": "object", + "link-type": { "$ref": "#/definitions/link-type" }, + "properties": { + "links": { + "type": "array", + "items": { "$ref": "#/definitions/link-unit" } + } + } + }, + "link-type": { + "type": "string", + "enum": [ + "executable", + "in-memory", + "dynamic-library", + "bytecode-library", + "static-library", + "merged-object" + ] + }, + "link-unit": { + "type": "object", + "properties": { + "unit-id": { "$ref": "#/definitions/unit-id" }, + "modules": { + "type": "array", + "items": { "$ref": "#/definitions/link-module" } + } + }, + "required": ["unit-id"] + }, + "link-module": { + "oneOf": [ + { "$ref": "#/definitions/module-name" }, + { + "type": "object", + "properties": { + "module": { "$ref": "#/definitions/module-name" }, + "boot": { "$ref": "#/definitions/boot" } + }, + "required": ["module"] + } + ] } } } ===================================== testsuite/tests/driver/mkdepend/all.T ===================================== @@ -41,9 +41,23 @@ test('mkdepend_mhu03', , when(opsys('mingw32'), skip) # shell script preprocessor ], make_depend_multiunit, [['mhu03/unitA'], '']) +# Link nodes +test('mkdepend_mhu04', + [ extra_files(['mhu04/']), dep_makefile, dep_json ], + make_depend_multiunit, [['mhu04/unitLib', 'mhu04/unitApp'], '']) +test('mkdepend_mhu05', + [ extra_files(['mhu05/']), dep_makefile, dep_json ], + make_depend_multiunit, [['mhu05/unitLib', 'mhu05/unitApp', 'mhu05/unitTest'], '']) # Honour -F test('mkdepend01', [ extra_files(['mkdepend01/']), dep_makefile, dep_json ], make_depend, [['mkdepend01/A.hs'], '-pgmF pp']) - +# Link nodes +test('mkdepend02', + [ extra_files(['mkdepend02/']), dep_json ], + make_depend, [['mkdepend02/Main.hs'], '']) +# Backpack +test('mkdepend_bkp_01', + [ extra_files(['mkdepend_bkp_01/']), dep_json, expect_fail ], + make_depend, [['mkdepend_bkp_01/bkp01.bkp'], '']) ===================================== testsuite/tests/driver/mkdepend/mhu04/app/Main.hs ===================================== @@ -0,0 +1,7 @@ +module Main (main) where + +import Lib (greeting) +import Utils (shout) + +main :: IO () +main = putStrLn (shout greeting) ===================================== testsuite/tests/driver/mkdepend/mhu04/app/Utils.hs ===================================== @@ -0,0 +1,6 @@ +module Utils (shout) where + +import Data.Char (toUpper) + +shout :: String -> String +shout = map toUpper ===================================== testsuite/tests/driver/mkdepend/mhu04/lib/Lib.hs ===================================== @@ -0,0 +1,6 @@ +module Lib (greeting) where + +import Lib.Internal (name) + +greeting :: String +greeting = "Hello, " ++ name ===================================== testsuite/tests/driver/mkdepend/mhu04/lib/Lib/Internal.hs ===================================== @@ -0,0 +1,4 @@ +module Lib.Internal (name) where + +name :: String +name = "world" ===================================== testsuite/tests/driver/mkdepend/mhu04/unitApp ===================================== @@ -0,0 +1 @@ +-i -i. -working-dir=mhu04/app -this-unit-id app -this-package-name app -package-id lib -o app Main ===================================== testsuite/tests/driver/mkdepend/mhu04/unitLib ===================================== @@ -0,0 +1 @@ +-i -i. -working-dir=mhu04/lib -this-unit-id lib -this-package-name lib Lib Lib.Internal ===================================== testsuite/tests/driver/mkdepend/mhu05/app/Main.hs ===================================== @@ -0,0 +1,6 @@ +module Main (main) where + +import Lib (greeting) + +main :: IO () +main = putStrLn greeting ===================================== testsuite/tests/driver/mkdepend/mhu05/lib/Lib.hs ===================================== @@ -0,0 +1,6 @@ +module Lib (greeting) where + +import Lib.Internal (name) + +greeting :: String +greeting = "Hello, " ++ name ===================================== testsuite/tests/driver/mkdepend/mhu05/lib/Lib/Internal.hs ===================================== @@ -0,0 +1,4 @@ +module Lib.Internal (name) where + +name :: String +name = "world" ===================================== testsuite/tests/driver/mkdepend/mhu05/test/Spec.hs ===================================== @@ -0,0 +1,9 @@ +module Spec (main) where + +import Lib (greeting) +import Lib.Internal (name) + +main :: IO () +main + | greeting == "Hello, " ++ name = putStrLn "OK" + | otherwise = error "unexpected greeting" ===================================== testsuite/tests/driver/mkdepend/mhu05/unitApp ===================================== @@ -0,0 +1 @@ +-i -i. -working-dir=mhu05/app -this-unit-id app -this-package-name app -package-id lib -o app Main ===================================== testsuite/tests/driver/mkdepend/mhu05/unitLib ===================================== @@ -0,0 +1 @@ +-i -i. -working-dir=mhu05/lib -this-unit-id lib -this-package-name lib -staticlib Lib Lib.Internal ===================================== testsuite/tests/driver/mkdepend/mhu05/unitTest ===================================== @@ -0,0 +1 @@ +-i -i. -working-dir=mhu05/test -this-unit-id test -this-package-name test -package-id lib -main-is Spec -o test Spec ===================================== testsuite/tests/driver/mkdepend/mkdepend02.dep-json ===================================== @@ -0,0 +1,2 @@ +{"module":"Main","unit-id":"main","imports":{},"source":"mkdepend02/Main.hs"} +{"unit-id":"main","link-type":"executable","links":[{"unit-id":"main","modules":["Main"]}]} ===================================== testsuite/tests/driver/mkdepend/mkdepend02/Main.hs ===================================== @@ -0,0 +1,3 @@ +module Main where + +main = putStrLn "Hello, World" ===================================== testsuite/tests/driver/mkdepend/mkdepend_bkp_01/bkp01.bkp ===================================== @@ -0,0 +1,20 @@ +unit p where + signature H where + data T + x :: Bool + module A where + import H + data A = MkA T + y = x + +unit q where + dependency p[H=<H>] + +unit h where + module H where + data T = T + x = True + +unit r where + dependency h + dependency q[H=h:H] ===================================== testsuite/tests/driver/mkdepend/mkdepend_mhu04.dep-json ===================================== @@ -0,0 +1,5 @@ +{"module":"Lib.Internal","unit-id":"lib","imports":{},"package-name":"lib","source":"mhu04/lib/Lib/Internal.hs"} +{"module":"Lib","unit-id":"lib","imports":{"lib":["Lib.Internal"]},"package-name":"lib","source":"mhu04/lib/Lib.hs"} +{"module":"Utils","unit-id":"app","imports":{},"package-name":"app","source":"mhu04/app/Utils.hs"} +{"module":"Main","unit-id":"app","imports":{"app":["Utils"],"lib":["Lib"]},"package-name":"app","source":"mhu04/app/Main.hs"} +{"unit-id":"app","link-type":"executable","links":[{"unit-id":"app","modules":["Main","Utils"]}]} ===================================== testsuite/tests/driver/mkdepend/mkdepend_mhu04.dep-makefile ===================================== @@ -0,0 +1,9 @@ +# DO NOT DELETE: Beginning of Haskell dependencies +mhu04/lib/Lib/Internal.o : mhu04/lib/Lib/Internal.hs +mhu04/lib/Lib.o : mhu04/lib/Lib.hs +mhu04/lib/Lib.o : mhu04/lib/Lib/Internal.hi +mhu04/app/Utils.o : mhu04/app/Utils.hs +mhu04/app/Main.o : mhu04/app/Main.hs +mhu04/app/Main.o : mhu04/app/Utils.hi +mhu04/app/Main.o : mhu04/lib/Lib.hi +# DO NOT DELETE: End of Haskell dependencies ===================================== testsuite/tests/driver/mkdepend/mkdepend_mhu05.dep-json ===================================== @@ -0,0 +1,7 @@ +{"module":"Lib.Internal","unit-id":"lib","imports":{},"package-name":"lib","source":"mhu05/lib/Lib/Internal.hs"} +{"module":"Lib","unit-id":"lib","imports":{"lib":["Lib.Internal"]},"package-name":"lib","source":"mhu05/lib/Lib.hs"} +{"unit-id":"lib","link-type":"static-library","links":[{"unit-id":"lib","modules":["Lib","Lib.Internal"]}]} +{"module":"Main","unit-id":"app","imports":{"lib":["Lib"]},"package-name":"app","source":"mhu05/app/Main.hs"} +{"unit-id":"app","link-type":"executable","links":[{"unit-id":"app","modules":["Main"]}]} +{"module":"Spec","unit-id":"test","imports":{"lib":["Lib","Lib.Internal"]},"package-name":"test","source":"mhu05/test/Spec.hs"} +{"unit-id":"test","link-type":"executable","links":[{"unit-id":"test","modules":["Spec"]}]} ===================================== testsuite/tests/driver/mkdepend/mkdepend_mhu05.dep-makefile ===================================== @@ -0,0 +1,10 @@ +# DO NOT DELETE: Beginning of Haskell dependencies +mhu05/lib/Lib/Internal.o : mhu05/lib/Lib/Internal.hs +mhu05/lib/Lib.o : mhu05/lib/Lib.hs +mhu05/lib/Lib.o : mhu05/lib/Lib/Internal.hi +mhu05/app/Main.o : mhu05/app/Main.hs +mhu05/app/Main.o : mhu05/lib/Lib.hi +mhu05/test/Spec.o : mhu05/test/Spec.hs +mhu05/test/Spec.o : mhu05/lib/Lib/Internal.hi +mhu05/test/Spec.o : mhu05/lib/Lib.hi +# DO NOT DELETE: End of Haskell dependencies View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9a5bdd7f171c943165ed4d7be36c5ec1... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9a5bdd7f171c943165ed4d7be36c5ec1... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Hannes Siebenhandl (@fendor)