Skip to content

Commit

Permalink
Explicit strictness annotations on JSON fields. Fixes breakage with G…
Browse files Browse the repository at this point in the history
…HC 7.6.
  • Loading branch information
valderman committed Jan 13, 2015
1 parent a90d935 commit 55e5965
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/haste-lib/src/Haste/JSON.hs
Expand Up @@ -32,9 +32,9 @@ toObject j = error $ "Call to toObject in non-browser: " ++ show j

-- Remember to update jsParseJSON if this data type changes!
data JSON
= Num !Double
| Str !JSString
| Bool !Bool
= Num {-# UNPACK #-} !Double
| Str {-# UNPACK #-} !JSString
| Bool {-# UNPACK #-} !Bool
| Arr ![JSON]
| Dict ![(JSString, JSON)]
| Null
Expand Down

0 comments on commit 55e5965

Please sign in to comment.