diff --git a/ihp-ide/IHP/IDE/CodeGen/ViewGenerator.hs b/ihp-ide/IHP/IDE/CodeGen/ViewGenerator.hs index 72c06b81e..ae3e19765 100644 --- a/ihp-ide/IHP/IDE/CodeGen/ViewGenerator.hs +++ b/ihp-ide/IHP/IDE/CodeGen/ViewGenerator.hs @@ -80,7 +80,7 @@ buildPlan' schema config = genericView = [trimming| ${viewHeader} - data ${nameWithSuffix} = ${nameWithSuffix} + data ${nameWithSuffix} = {${nameWithSuffix}} instance View ${nameWithSuffix} where html ${nameWithSuffix} { .. } = [hsx|