defaultBuildSettings :: Maybe Int -- ^ argument to -j
                     -> GhcMajorVersion
                     -> BuildSettings
defaultBuildSettings cores version = BuildSettings
    { sandboxRoot = "sandbox"
    , extraArgs = \bs -> "-fnetwork23" : "-fhttps" :
        case bs of
            BSTest -> []
            _ ->
                case cores of
                    Nothing -> ["-j"]
                    Just 1 -> []
                    Just j -> ["-j" ++ show j]
    , testWorkerThreads = 4
    , buildDocs = True
    , tarballDir = "patching/tarballs"
    , cabalFileDir = Nothing
    , underlayPackageDirs = []
    }
defaultBuildSettings :: Maybe Int -- ^ argument to -j
                     -> GhcMajorVersion
                     -> BuildSettings
defaultBuildSettings cores version = BuildSettings
    { sandboxRoot = "sandbox"
    , extraArgs = \bs -> "-fnetwork23" : "-fhttps" :
        case bs of
            BSTest -> []
            _ ->
                case cores of
                    Nothing -> ["-j"]
                    Just 1 -> []
                    Just j -> ["-j" ++ show j]
    , testWorkerThreads = 4
    , buildDocs = True
    , tarballDir = "patching/tarballs"
    , cabalFileDir = Nothing
    , underlayPackageDirs = []
    }
defaultBuildSettings cores version = BuildSettings
    { sandboxRoot = "sandbox"
    , extraArgs = \bs -> "-fnetwork23" : "-fhttps" :
        case bs of
            BSTest -> []
            _ ->
                case cores of
                    Nothing -> ["-j"]
                    Just 1 -> []
                    Just j -> ["-j" ++ show j]
    , testWorkerThreads = 4
    , buildDocs = True
    , tarballDir = "patching/tarballs"
    , cabalFileDir = Nothing
    , underlayPackageDirs = []
    }