change dangling prismDecoder to reviewEncoder
commite553d79ea8246237259e350d19f51fe74c5434aa
authorElaine Cardenas <elaine.cardenas@obsidian.systems>
dateTue 28 Apr 2020, 05:59 (6 years ago)
parent2f87802
lib/frontend/src/Obelisk/Frontend.hs+1−1
@@ -180,7 +180,7 @@ runFrontendWithConfigsAndCurrentRoute
180180 -> Frontend (R frontendRoute)
181181 -> JSM ()
182182runFrontendWithConfigsAndCurrentRoute mode configs validFullEncoder frontend = do
183− let ve = validFullEncoder . hoistParse errorLeft (prismDecoder (rPrism $ _FullRoute_Frontend . _ObeliskRoute_App))
183+ let ve = validFullEncoder . hoistParse errorLeft (reviewEncoder (rPrism $ _FullRoute_Frontend . _ObeliskRoute_App))
184184 errorLeft = \case
185185 Left _ -> error "runFrontend: Unexpected non-app ObeliskRoute reached the frontend. This shouldn't happen."
186186 Right x -> Identity x