Skip to content

Commit

Permalink
remove traces
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorTaelin committed Oct 30, 2024
1 parent 8fb14f6 commit 8d3d62d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kind/CompileJS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ fnToJS book fnName (getArguments -> (fnArgs, fnBody)) = do

-- Inliner
red :: CT -> CT
red tm = trace ("red " ++ showCT tm 0) $ go tm where
red tm = {-trace ("red " ++ showCT tm 0) $-} go tm where
go (CApp fun arg) = app (red fun) arg
go (CRef nam) = ref nam
go val = val
Expand All @@ -330,7 +330,7 @@ fnToJS book fnName (getArguments -> (fnArgs, fnBody)) = do
-- create an aux function called "inl :: String -> Bool" after it
ref :: String -> CT
ref nam
| inl nam = trace ("inlined:"++nam) $ red (fromJust (M.lookup nam book))
| inl nam = {-trace ("inlined:"++nam) $-} red (fromJust (M.lookup nam book))
| otherwise = CRef nam

inl :: String -> Bool
Expand Down

0 comments on commit 8d3d62d

Please sign in to comment.