File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/Language/PureScript/CoreImp Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,8 @@ moduleToCoreImp (Module coms mn imps exps externs decls) =
168168 literalBinder :: Ident -> [Statement Ann ] -> Literal (CF. Binder Ann ) -> m [Statement Ann ]
169169 literalBinder varName done (NumericLiteral n) =
170170 return [IfElse nullAnn (BinaryOp nullAnn Equal (var varName) (Literal nullAnn $ NumericLiteral n)) done Nothing ]
171+ literalBinder varName done (CharLiteral c) =
172+ return [IfElse nullAnn (BinaryOp nullAnn Equal (var varName) (str [c])) done Nothing ]
171173 literalBinder varName done (StringLiteral s) =
172174 return [IfElse nullAnn (BinaryOp nullAnn Equal (var varName) (str s)) done Nothing ]
173175 literalBinder varName done (BooleanLiteral True ) =
You can’t perform that action at this time.
0 commit comments