File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
unison-runtime/src/Unison/Runtime/ANF Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -590,16 +590,17 @@ putFunc refrep allowFop ctx f = case f of
590590
591591getFunc :: (MonadGet m , SerialConfig m , Var v ) => [v ] -> m (Func v )
592592getFunc 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
You can’t perform that action at this time.
0 commit comments