summaryrefslogtreecommitdiff
path: root/src/Language/Fiddle/Internal/UnitInterface.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Language/Fiddle/Internal/UnitInterface.hs')
-rw-r--r--src/Language/Fiddle/Internal/UnitInterface.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Language/Fiddle/Internal/UnitInterface.hs b/src/Language/Fiddle/Internal/UnitInterface.hs
index 4244121..aacb71d 100644
--- a/src/Language/Fiddle/Internal/UnitInterface.hs
+++ b/src/Language/Fiddle/Internal/UnitInterface.hs
@@ -67,10 +67,10 @@ data ExportedValue where
deriving (Show, Eq, Ord, Generic, FromJSON, ToJSON)
instance ToJSON UnitInterface where
- toJSON (UnitInterface rootScope dependencies) =
+ toJSON ui =
object
- [ "rootScope" .= rootScope,
- "dependencies" .= dependencies
+ [ "rootScope" .= rootScope ui,
+ "dependencies" .= dependencies ui
]
instance FromJSON UnitInterface where