1 import Test
.Cabal
.Prelude
2 main
= setupAndCabalTest
$ withPackageDb
$ do
4 recordMode DoNotRecord
$ do
5 ghc84
<- isGhcVersion
">= 8.4"
6 let lic
= if ghc84
then "BSD-3-Clause" else "BSD3"
7 ghcPkg
' "field" ["my", "license"] >>= assertOutputContains lic