File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ instance Show Oper where
230230
231231instance Show LetT where
232232 show LAZY = " "
233- show STRI = " . "
233+ show STRI = " ! "
234234
235235showCore :: Core -> String
236236showCore core = maybe (format core) id (sugar core) where
You can’t perform that action at this time.
0 commit comments