@@ -28,7 +28,7 @@ import qualified Elm.Version as V
28import qualified File
28import qualified File
29import qualified Http
29import qualified Http
30import qualified Json.Decode as D
30import qualified Json.Decode as D
31−import qualified Reporting.Exit as E
31+import qualified Reporting.Exit as Exit
32import qualified Reporting.Suggest as Suggest
32import qualified Reporting.Suggest as Suggest
33import qualified Stuff
33import qualified Stuff
@@ -68,7 +68,7 @@ read cache =
71−fetch :: Http.Manager -> Stuff.PackageCache -> IO (Either E.RegistryProblem Registry)
71+fetch :: Http.Manager -> Stuff.PackageCache -> IO (Either Exit.RegistryProblem Registry)
72fetch manager cache =
72fetch manager cache =
73 post manager "/all-packages" allPkgsDecoder $
73 post manager "/all-packages" allPkgsDecoder $
74 \versions ->
74 \versions ->
@@ -112,7 +112,7 @@ allPkgsDecoder =
115−update :: Http.Manager -> Stuff.PackageCache -> Registry -> IO (Either E.RegistryProblem Registry)
115+update :: Http.Manager -> Stuff.PackageCache -> Registry -> IO (Either Exit.RegistryProblem Registry)
116update manager cache oldRegistry@(Registry size packages) =
116update manager cache oldRegistry@(Registry size packages) =
117 post manager ("/all-packages/since/" ++ show size) (D.list newPkgDecoder) $
117 post manager ("/all-packages/since/" ++ show size) (D.list newPkgDecoder) $
@@ -166,7 +166,7 @@ newPkgDecoder =
169−latest :: Http.Manager -> Stuff.PackageCache -> IO (Either E.RegistryProblem Registry)
169+latest :: Http.Manager -> Stuff.PackageCache -> IO (Either Exit.RegistryProblem Registry)
170latest manager cache =
170latest manager cache =
171 do maybeOldRegistry <- read cache
171 do maybeOldRegistry <- read cache
172 case maybeOldRegistry of
172 case maybeOldRegistry of
@@ -223,13 +223,13 @@ projectDistance bad possibility =
226−post :: Http.Manager -> String -> D.Decoder x a -> (a -> IO b) -> IO (Either E.RegistryProblem b)
226+post :: Http.Manager -> String -> D.Decoder x a -> (a -> IO b) -> IO (Either Exit.RegistryProblem b)
227post manager path decoder callback =
227post manager path decoder callback =
228− Http.post manager (Website.route path []) [] E.RP_Http $
228+ Http.post manager (Website.route path []) [] Exit.RP_Http $
230 case D.fromByteString decoder body of
230 case D.fromByteString decoder body of
231 Right a -> Right <$> callback a
231 Right a -> Right <$> callback a
232− Left _ -> return $ Left E.RP_Data
232+ Left _ -> return $ Left Exit.RP_Data