Skip to content

Commit

Permalink
Update docs-search/common/src/Docs/Search/Declarations.purs
Browse files Browse the repository at this point in the history
Co-authored-by: Fyodor Soikin <[email protected]>
  • Loading branch information
f-f and fsoikin authored Jan 20, 2025
1 parent 0c9bf4b commit 3e42284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs-search/common/src/Docs/Search/Declarations.purs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ getLevelAndName (Declaration { info, title }) =
-- | built-in (guaranteed by the compiler).
extractPackageName :: Graph.ModuleGraphWithPackage -> Set PackageName -> ModuleName -> PackageInfo
extractPackageName moduleGraph workspacePackages (ModuleName moduleName) =
case String.split (Pattern ".") moduleName !! 0 == Just "Prim" of
case moduleName # startsWith "Prim." of
true -> Builtin
false -> case Map.lookup moduleName moduleGraph of
Nothing -> UnknownPackage
Expand Down

0 comments on commit 3e42284

Please sign in to comment.