1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00

Appease hlint

This commit is contained in:
joshvera 2018-04-24 16:30:39 -04:00
parent c72ae3c161
commit d4ac097291

View File

@ -37,4 +37,4 @@ fromModules :: PackageName -> Maybe Version -> Maybe (Module term) -> Int -> [Mo
fromModules name version prelude entryPoints modules =
Package (PackageInfo name version) (PackageBody (ModuleTable.fromModules modules) prelude entryPoints')
where
entryPoints' = ModuleTable . Map.fromList $ (,Nothing) . modulePath . moduleInfo <$> if entryPoints == 0 then modules else (take entryPoints modules)
entryPoints' = ModuleTable . Map.fromList $ (,Nothing) . modulePath . moduleInfo <$> if entryPoints == 0 then modules else take entryPoints modules