aboutsummaryrefslogtreecommitdiffstats
path: root/autotypes
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-06-06 09:25:05 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-06-06 09:36:09 +0200
commit4003a863256352a43161eba44abecf986e76092c (patch)
treec0feccf6442cdac7abbd3f560d765efb072a4471 /autotypes
parentbfb98d7675515394e1b9a0417bfafc83d775611c (diff)
add naive schema comparison
Diffstat (limited to 'autotypes')
-rw-r--r--autotypes/src/AutoTypes.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/autotypes/src/AutoTypes.hs b/autotypes/src/AutoTypes.hs
index c5a43d1..826d6c6 100644
--- a/autotypes/src/AutoTypes.hs
+++ b/autotypes/src/AutoTypes.hs
@@ -4,7 +4,6 @@ module AutoTypes
)
where
-import Debug.Trace
import qualified AutoTypes.Unify as U
import Data.Aeson (Value, decodeFileStrict', encode)
import Data.Maybe (fromJust)
@@ -17,7 +16,7 @@ autoTypes fp fps = autoTypes' <$> go fp <*> mapM go (fp : fps)
autoTypes' :: Value -> [Value] -> U.T
autoTypes' t' ts' =
- let types = map U.fromJson (Debug.Trace.traceShowId (t' : ts'))
+ let types = map U.fromJson (t' : ts')
in head
( foldr1
(\ls rs -> (concat [U.unify1 l r | l <- ls, r <- rs]))