Skip to content

Commit 5ceaa45

Browse files
committed
use package names instead of unit-id in .fullpak (better readability)
1 parent e61ed70 commit 5ceaa45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

external-stg/lib/Stg/Fullpak.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ mkFullpak ghcstgappPath stgbinsOnly includeAll fullpakName = do
112112
]
113113
existingFiles <- withArchive modModpakPath $ mapM mkEntrySelector files >>= filterM doesEntryExist
114114
forM_ existingFiles $ \src -> do
115-
dst <- mkEntrySelector ("haskell" </> modUnitId </> modModuleName </> unEntrySelector src)
115+
dst <- mkEntrySelector ("haskell" </> modPackageName </> modModuleName </> unEntrySelector src)
116116
copyEntry modModpakPath src dst
117117
setExternalFileAttrs (fromFileMode 0o0644) dst

external-stg/lib/Stg/Program.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ getFullpakModules fullpakPath = do
222222
appinfoSelector <- liftIO $ mkEntrySelector fullpakAppInfoPath
223223
AppInfo{..} <- getEntry appinfoSelector >>= Y.decodeThrow
224224
forM aiLiveCode $ \CodeInfo{..} -> do
225-
s <- liftIO $ mkEntrySelector $ "haskell" </> ciUnitId </> ciModuleName </> modpakStgbinPath
225+
s <- liftIO $ mkEntrySelector $ "haskell" </> ciPackageName </> ciModuleName </> modpakStgbinPath
226226
decodeStgbin . BSL.fromStrict <$> getEntry s
227227

228228
-- .ghc_stgapp

0 commit comments

Comments
 (0)