Skip to content

Commit 15cd84c

Browse files
committed
Fix old bool wrapper on setEcho builtin
1 parent b7b3439 commit 15cd84c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

unison-runtime/src/Unison/Runtime/Builtin.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1015,11 +1015,10 @@ set'echo :: ForeignOp
10151015
set'echo instr =
10161016
([BX, BX],)
10171017
. TAbss [arg1, arg2]
1018-
. unenum 2 arg2 Ty.booleanRef bol
1019-
. TLetD result UN (TFOp instr [arg1, bol])
1018+
. TLetD result UN (TFOp instr [arg1, arg2])
10201019
$ outIoFailUnit stack1 stack2 stack3 unit fail result
10211020
where
1022-
(arg1, arg2, bol, stack1, stack2, stack3, unit, fail, result) = fresh
1021+
(arg1, arg2, stack1, stack2, stack3, unit, fail, result) = fresh
10231022

10241023
-- a -> IOMode -> ...
10251024
inIomr :: forall v. (Var v) => v -> v -> v -> v -> ANormal v -> ForeignFunc -> ([Mem], ANormal v)

unison-runtime/src/Unison/Runtime/Stack.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ peekOffBool stk i = do
11811181
b <- bpeekOff stk i
11821182
pure $ case b of
11831183
Enum _ t -> t /= TT.falseTag
1184-
_ -> error "peekBool: not a boolean"
1184+
_ -> error "peekOffBool: not a boolean"
11851185
{-# INLINE peekOffBool #-}
11861186

11871187
peekOffS :: Stack -> Int -> IO USeq

0 commit comments

Comments
 (0)