Skip to content

Commit

Permalink
Update cryptol-remote-api with changes to the evalPrim API
Browse files Browse the repository at this point in the history
  • Loading branch information
robdockins committed Oct 12, 2020
1 parent 77f9164 commit cfee6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryptol-remote-api/src/CryptolServer/Data/Expression.hs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ typeNum _ = empty
readBack :: PrimMap -> TC.Type -> Value -> Eval Expression
readBack prims ty val =
let tbl = primTable theEvalOpts in
let ?evalPrim = \i -> Map.lookup i tbl in
let ?evalPrim = \i -> Right <$> Map.lookup i tbl in
case TC.tNoUser ty of
TC.TRec tfs ->
Record . HM.fromList <$>
Expand Down

0 comments on commit cfee6a7

Please sign in to comment.