From d0d1215913dbdd44b62cf584100a9db18aaf83b2 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Wed, 19 Feb 2025 17:36:34 +0100 Subject: fix frontend build --- frontend/app/Schema.hs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'frontend/app') diff --git a/frontend/app/Schema.hs b/frontend/app/Schema.hs index b1618d3..13f37b3 100644 --- a/frontend/app/Schema.hs +++ b/frontend/app/Schema.hs @@ -6,9 +6,6 @@ module Schema ) where -#ifdef ghcjs_HOST_OS -import Data.Text qualified as T -#endif import Control.Applicative ((<|>)) import Data.Aeson qualified as A import Data.Aeson.Key qualified as AK @@ -20,7 +17,7 @@ import Data.Scientific (fromFloatDigits) import Data.Set qualified as S import Form qualified as F import Miso -import Miso.String (MisoString, fromMisoString, intercalate, toMisoString) +import Miso.String (MisoString, fromMisoString, toMisoString) import Route data Schema = Schema @@ -45,7 +42,7 @@ instance A.FromJSON Schema where #ifdef ghcjs_HOST_OS instance A.FromJSONKey MisoString where - parseJSON = fromMisoString @T.Text <$> parseJSON + fromJSONKey = fromMisoString <$> A.fromJSONKey #endif data Property -- cgit v1.2.3