Skip to content

Add support for MultilineStrings in javascript foreign import declaration

Summary

Currently trying to use multiline string as a foreign declaration results in parse error:

{-# LANGUAGE MultilineStrings #-}

foreign import javascript unsafe
  """ -- <- parse error here
  (...)
  """
  my_function :: IO ()

Expected behavior

It should work 😄

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information