Skip to content

Commit 72a7561

Browse files
doliogithub-actions[bot]
authored andcommitted
automatically run ormolu
1 parent a8f5842 commit 72a7561

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

unison-runtime/src/Unison/Runtime/ANF/Serialize.hs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -590,16 +590,17 @@ putFunc refrep allowFop ctx f = case f of
590590

591591
getFunc :: (MonadGet m, SerialConfig m, Var v) => [v] -> m (Func v)
592592
getFunc ctx =
593-
askFOp >>= \allowFOp -> getTag >>= \case
594-
FVarT -> FVar <$> getVar ctx
595-
FCombT -> FComb <$> getReference
596-
FContT -> FCont <$> getVar ctx
597-
FConT -> FCon <$> getReference <*> getCTag
598-
FReqT -> FReq <$> getReference <*> getCTag
599-
FPrimT -> FPrim . Left <$> getPOp
600-
FForeignT
601-
| allowFOp -> FPrim . Right <$> getFOp
602-
| otherwise -> exn "getFunc: can't deserialize a foreign func"
593+
askFOp >>= \allowFOp ->
594+
getTag >>= \case
595+
FVarT -> FVar <$> getVar ctx
596+
FCombT -> FComb <$> getReference
597+
FContT -> FCont <$> getVar ctx
598+
FConT -> FCon <$> getReference <*> getCTag
599+
FReqT -> FReq <$> getReference <*> getCTag
600+
FPrimT -> FPrim . Left <$> getPOp
601+
FForeignT
602+
| allowFOp -> FPrim . Right <$> getFOp
603+
| otherwise -> exn "getFunc: can't deserialize a foreign func"
603604

604605
-- Note: this numbering is derived, and so not particularly stable.
605606
-- However, foreign functions are not serialized for interchange. This

0 commit comments

Comments
 (0)