@@ -32,18 +32,20 @@ import qualified Reporting.Result as Result
32import qualified Reporting.Warning as Warning
32import qualified Reporting.Warning as Warning
37version :: Package.Version
39version :: Package.Version
39 Elm.Compiler.Version.version
41 Elm.Compiler.Version.version
42-- DEPENDENCIES
45-- DEPENDENCIES
46− -> Either [Error] (PublicModule.Name, [PublicModule.Name])
48+parseDependencies :: String -> Either [Error] (PublicModule.Name, [PublicModule.Name])
47parseDependencies sourceCode =
49parseDependencies sourceCode =
49 (Result.Result _warnings rawResult) =
51 (Result.Result _warnings rawResult) =
@@ -60,8 +62,10 @@ parseDependencies sourceCode =
63-- COMPILATION
66-- COMPILATION
65{-| Compiles Elm source code to JavaScript. -}
69{-| Compiles Elm source code to JavaScript. -}
67 :: Context
71 :: Context
@@ -125,8 +129,10 @@ docsGen isExposed (Module.Module name _ info) =
125 (Just . toDocs) `fmap` Result.mapError Error.Docs getChecked
129 (Just . toDocs) `fmap` Result.mapError Error.Docs getChecked
128-- DEALIASER
133-- DEALIASER
130newtype Localizer =
136newtype Localizer =
131 Localizer RenderType.Localizer
137 Localizer RenderType.Localizer
@@ -136,8 +142,10 @@ dummyLocalizer =
136 Localizer Map.empty
142 Localizer Map.empty
141newtype Error =
149newtype Error =
142 Error (A.Located Error.Error)
150 Error (A.Located Error.Error)
@@ -157,8 +165,10 @@ errorToJson (Localizer localizer) location (Error err) =
157 Error.toJson localizer location err
165 Error.toJson localizer location err
160-- WARNINGS
169-- WARNINGS
162newtype Warning =
172newtype Warning =
163 Warning (A.Located Warning.Warning)
173 Warning (A.Located Warning.Warning)