Skip to content

Commit

Permalink
Replace where with view pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 15, 2023
1 parent 2064c79 commit 46f9a08
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1184,14 +1184,12 @@ convertToLegacyPerPackageConfig PackageConfig{..} =
--

parseLegacyProjectConfigFields :: ProjectConfigImport -> [ParseUtils.Field] -> ParseResult LegacyProjectConfig
parseLegacyProjectConfigFields pci =
parseLegacyProjectConfigFields (ConstraintSourceProjectConfig -> constraintSrc) =
parseFieldsAndSections
(legacyProjectConfigFieldDescrs constraintSrc)
legacyPackageConfigSectionDescrs
legacyPackageConfigFGSectionDescrs
mempty
where
constraintSrc = ConstraintSourceProjectConfig pci

parseLegacyProjectConfig :: FilePath -> BS.ByteString -> ParseResult LegacyProjectConfig
parseLegacyProjectConfig source bs = parseLegacyProjectConfigFields (ProjectConfigImport 0 source) =<< ParseUtils.readFields bs
Expand Down

0 comments on commit 46f9a08

Please sign in to comment.