    {-# LANGUAGE TemplateHaskell #-}

    -- | Code snippets used by the JS backends.
    module Futhark.CodeGen.RTS.JavaScript
      ( serverJs,
        valuesJs,
        wrapperclassesJs,
      )
    where

    import Data.FileEmbed
    import Data.Text qualified as T

    -- | @rts/javascript/server.js@
    serverJs :: T.Text
    serverJs :: Text
    serverJs = $(embedStringFile "rts/javascript/server.js")

    -- | @rts/javascript/values.js@
    valuesJs :: T.Text
    valuesJs :: Text
    valuesJs = $(embedStringFile "rts/javascript/values.js")

    -- | @rts/javascript/wrapperclasses.js@
    wrapperclassesJs :: T.Text
    wrapperclassesJs :: Text
    wrapperclassesJs = $(embedStringFile "rts/javascript/wrapperclasses.js")