on master help sign in
Rename editor-hints.json to deps-info.json
commit9699f23d244e3e1ce80724a384927b70a4f3f960 authorEvan Czaplicki <evancz@users.noreply.github.com> dateFri 27 Sep 2019, 13:13 (7 years ago) parentc4118b5
2 files changed+6−6
worker/src/Artifacts.hs+4−4 worker/src/Main.hs+2−2
worker/src/Artifacts.hs+4−4
@@ -3,7 +3,7 @@ module Artifacts
33 ( Artifacts(..)
44 , loadCompile
55 , loadRepl
6− , toEditorHints
6+ , toDepsInfo
77 )
88 where
99
@@ -102,11 +102,11 @@ toUnique oneOrMore =
102102
103103
104104
105−-- TO EDITOR HINTS
105+-- TO DEPS INFO
106106
107107
108−toEditorHints :: Artifacts -> BS.ByteString
109−toEditorHints (Artifacts ifaces _) =
108+toDepsInfo :: Artifacts -> BS.ByteString
109+toDepsInfo (Artifacts ifaces _) =
110110 LBS.toStrict $ B.toLazyByteString $ E.encodeUgly $ encode ifaces
111111
112112
worker/src/Main.hs+2−2
@@ -24,14 +24,14 @@ main =
2424 do rArtifacts <- Artifacts.loadRepl
2525 cArtifacts <- Artifacts.loadCompile
2626 errorJS <- Compile.loadErrorJS
27− let editorHints = Artifacts.toEditorHints cArtifacts
27+ let depsInfo = Artifacts.toDepsInfo cArtifacts
2828
2929 httpServe config $ msum $
3030 [ ifTop $ status
3131 , path "repl" $ Repl.endpoint rArtifacts
3232 , path "compile" $ Compile.endpoint cArtifacts
3333 , path "compile/errors.js" $ writeBS errorJS
34− , path "compile/editor-hints.json" $ writeBS editorHints
34+ , path "compile/deps-info.json" $ writeBS depsInfo
3535 , notFound
3636 ]
3737