langauge: suppress warnings for unrecognised pragams in upgrades (#2711)

This make the build of upgrade modules a bit more quiet. The warnings
appear because in the generated generic instances there is an
unrecognised {-# NO_OVERLAPP #-} pragma annotation.
This commit is contained in:
Robin Krom 2019-08-30 12:21:01 +02:00 committed by GitHub
parent 0e80f75ff4
commit d5c6d93772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -733,7 +733,8 @@ execMigrate projectOpts opts0 inFile1_ inFile2_ mbDir = do
"daml build --init-package-db=no" <> " --package " <>
escape (show (pkgName1, [(m, m ++ "A") | m <- eqModNamesStr])) <>
" --package " <>
escape (show (pkgName2, [(m, m ++ "B") | m <- eqModNamesStr]))
escape (show (pkgName2, [(m, m ++ "B") | m <- eqModNamesStr])) <>
" --ghc-option -Wno-unrecognised-pragmas"
forM_ eqModNames $ \m@(LF.ModuleName modName) -> do
[genSrc1, genSrc2] <-
forM [(pkgId1, lfPkg1), (pkgId2, lfPkg2)] $ \(pkgId, pkg) -> do