Skip to content

Commit b33cf77

Browse files
committed
begin using new Parse.Module.fromByteString API in Elm.Details
1 parent 0e16843 commit b33cf77

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

builder/src/Elm/Details.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ crawlModule foreignDeps mvar pkg src docsStatus name =
595595
crawlFile :: Map.Map ModuleName.Raw ForeignInterface -> MVar StatusDict -> Pkg.Name -> FilePath -> DocsStatus -> ModuleName.Raw -> FilePath -> IO (Maybe Status)
596596
crawlFile foreignDeps mvar pkg src docsStatus expectedName path =
597597
do bytes <- File.readUtf8 path
598-
case Parse.fromByteString pkg bytes of
598+
case Parse.fromByteString (Parse.Package pkg) bytes of
599599
Right modul@(Src.Module (Just (A.At _ actualName)) _ _ imports _ _ _ _ _) | expectedName == actualName ->
600600
do deps <- crawlImports foreignDeps mvar pkg src imports
601601
return (Just (SLocal docsStatus deps modul))

compiler/src/Parse/Module.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{-# LANGUAGE OverloadedStrings #-}
33
module Parse.Module
44
( fromByteString
5+
, ProjectType(..)
56
, chompImports
67
, chompImport
78
)

0 commit comments

Comments
 (0)