Skip to content

Commit ceeba69

Browse files
committed
Fix printing of strict let
1 parent 11ad25f commit ceeba69

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/HVM/Parse.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,6 @@ buildMatchExpr val mov cases
794794
| onlyDefault cases =
795795
fail "Match with only a default case is not allowed" -- Invalid case
796796
| hasDefault (last cases) = do -- Has default: use If-Let chain
797-
st <- getState
798-
cid <- return $ mget (pCtrToCid st) (getName $ head cases)
799-
adt <- return $ mget (pCidToADT st) cid
800797
var <- return $ getVar (last cases)
801798
ifl <- intoIfLetChain (Var (stripName var)) mov (init cases) var (last cases)
802799
return $ Let LAZY var val ifl

src/HVM/Type.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ instance Show Oper where
230230

231231
instance Show LetT where
232232
show LAZY = ""
233-
show STRI = "."
233+
show STRI = "!"
234234

235235
showCore :: Core -> String
236236
showCore core = maybe (format core) id (sugar core) where

0 commit comments

Comments
 (0)