+ progs = withPrograms lbi
+ prog = ConfiguredProgram {
+ programId = programName ghcPkgProgram,
+ programVersion = Nothing,
+ programArgs = ["--force", "--global-conf", ghcpkgconf],
+ programLocation = UserSpecified ghcpkg
+ }
+ progs' = updateProgram prog progs
+ i_reg = i { prefixDirTemplate = toPathTemplate iprefix,
+ binDirTemplate = toPathTemplate ibindir,
+ libDirTemplate = toPathTemplate ilibdir,
+ libexecDirTemplate = toPathTemplate ilibexecdir,
+ dataDirTemplate = toPathTemplate idatadir,
+ docDirTemplate = toPathTemplate idocdir,
+ htmlDirTemplate = toPathTemplate ihtmldir,
+ interfaceDirTemplate = toPathTemplate iinterfacedir
+ }
+ lbi_reg = lbi { installDirTemplates = i_reg,
+ withPrograms = progs' }
+ (copyHook simpleUserHooks) pd_copy lbi_copy userHooks copyFlags
+ (regHook simpleUserHooks) pd_reg lbi_reg userHooks registerFlags