File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ module Data.Argonaut.Core
35
35
, toString
36
36
, toArray
37
37
, toObject
38
+ , jNull
38
39
, jsonNull
39
40
, jsonTrue
40
41
, jsonFalse
@@ -49,11 +50,12 @@ module Data.Argonaut.Core
49
50
50
51
import Prelude
51
52
52
- import Data.Tuple (Tuple )
53
- import Data.Maybe (Maybe (..))
54
53
import Data.Function.Uncurried (Fn5 , runFn5 , Fn7 , runFn7 )
55
-
54
+ import Data.Maybe ( Maybe (..))
56
55
import Data.StrMap as M
56
+ import Data.Tuple (Tuple )
57
+
58
+ import Unsafe.Coerce (unsafeCoerce )
57
59
58
60
-- | A Boolean value inside some JSON data. Note that this type is exactly the
59
61
-- | same as the primitive `Boolean` type; this synonym acts only to help
@@ -195,6 +197,9 @@ foreign import fromObject :: JObject -> Json
195
197
196
198
-- Defaults
197
199
200
+ jNull :: JNull
201
+ jNull = (unsafeCoerce :: Json -> JNull ) jsonNull
202
+
198
203
foreign import jsonNull :: Json
199
204
200
205
jsonTrue :: Json
You can’t perform that action at this time.
0 commit comments