[Git][ghc/ghc][wip/swordlash/allow_multiline_strings_in_js_ffi] Make tests actually multiline
Mateusz Goślinowski (@Swordlash)
gitlab at gitlab.haskell.org
Sun Jan 12 00:34:39 UTC 2025
Mateusz Goślinowski pushed to branch wip/swordlash/allow_multiline_strings_in_js_ffi at Glasgow Haskell Compiler / GHC
Commits:
97887965 by Mateusz Goślinowski at 2025-01-12T01:34:30+01:00
Make tests actually multiline
- - - - -
1 changed file:
- testsuite/tests/javascript/T25633.hs
Changes:
=====================================
testsuite/tests/javascript/T25633.hs
=====================================
@@ -14,13 +14,17 @@ foreign import javascript
foreign import javascript
"""
- (function (x) { console.log(x); })
+ (function (x) {
+ console.log(x);
+ })
"""
multiLog :: JSVal -> IO ()
foreign import javascript
"""
- ((x) => x + "")
+ ((x) =>
+ x + ""
+ )
"""
jsToString :: JSVal -> JSVal
@@ -31,7 +35,6 @@ foreign import ccall
main :: IO ()
main = do
- -- avoid C and Haskell prints to stdout to be intermingled due to buffering on the Haskell side
hSetBuffering stdout NoBuffering
multiLog $ toJSInt 5
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9788796542928716fc3c0186190080dbf5aa6bf9
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9788796542928716fc3c0186190080dbf5aa6bf9
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250111/9b30171e/attachment-0001.html>
More information about the ghc-commits
mailing list