Skip to content
Snippets Groups Projects
Commit d880b4cf authored by Cheng Shao's avatar Cheng Shao :beach:
Browse files

ghc-experimental: make JSVal abstract in GHC.Wasm.Prim

This commit makes JSVal an abstract type in the export list of
GHC.Wasm.Prim. JSVal's internal representation is supposed to be a non
user facing implementation detail subject to change at any time. We
should only expose things that are newtypes of JSVal, not JSVal
itself.

(cherry picked from commit 8037f487)
(cherry picked from commit a834b03d)
parent 45f73281
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
module GHC.Wasm.Prim (
-- User-facing JSVal type and freeJSVal
JSVal (..),
JSVal,
freeJSVal,
-- The JSString type and conversion from/to Haskell String
......@@ -20,4 +20,3 @@ module GHC.Wasm.Prim (
) where
import GHC.Internal.Wasm.Prim
......@@ -4,7 +4,7 @@ module Test where
import Data.Maybe
import GHC.Exts
import GHC.Wasm.Prim
import GHC.Internal.Wasm.Prim
import GHC.Weak
import System.Mem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment