makeModuleDocDeclFacts :: ModuleDocUriDecl -> Conversion [Raw.Entry]
makeModuleDocDeclFacts ModuleDocUriDecl{..} = do
    vn <- asks baseVName
    let pm = mtPkgModule mddeclTick
        NameAndEntries pkgVn pkgEntries = makePackageFacts vn pm
        docUriFacts =
            nodeFacts pkgVn PackageNK
              [ nodeFact DocUriF (T.encodeUtf8 mddeclDocUri),
                nodeFact CompleteF Definition
              ]
    return $ pkgEntries ++ docUriFacts

-- | Makes entries for an anchor (either explicit or implicit)..
--
-- If snippet span is not provided, the Kythe service will auto-construct one.
makeModuleDocDeclFacts :: ModuleDocUriDecl -> Conversion [Raw.Entry]
makeModuleDocDeclFacts ModuleDocUriDecl{..} = do
    vn <- asks baseVName
    let pm = mtPkgModule mddeclTick
        NameAndEntries pkgVn pkgEntries = makePackageFacts vn pm
        docUriFacts =
            nodeFacts pkgVn PackageNK
              [ nodeFact DocUriF (T.encodeUtf8 mddeclDocUri),
                nodeFact CompleteF Definition
              ]
    return $ pkgEntries ++ docUriFacts

-- | Makes entries for an anchor (either explicit or implicit)..
--
-- If snippet span is not provided, the Kythe service will auto-construct one.
makeModuleDocDeclFacts ModuleDocUriDecl{..} = do
    vn <- asks baseVName
    let pm = mtPkgModule mddeclTick
        NameAndEntries pkgVn pkgEntries = makePackageFacts vn pm
        docUriFacts =
            nodeFacts pkgVn PackageNK
              [ nodeFact DocUriF (T.encodeUtf8 mddeclDocUri),
                nodeFact CompleteF Definition
              ]
    return $ pkgEntries ++ docUriFacts

-- | Makes entries for an anchor (either explicit or implicit)..
--
-- If snippet span is not provided, the Kythe service will auto-construct one.