Skip to content

Commit

Permalink
Disable wire2 preparing to deprecate it
Browse files Browse the repository at this point in the history
  • Loading branch information
supermario committed Nov 15, 2023
1 parent c12fe4e commit 4f6f032
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/src/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ compile pkg ifaces modul = do
let modul_ =
modul
& Lamdera.Wire3.Interfaces.modifyModul pkg ifaces
& Lamdera.Wire2.Interfaces.modifyModul pkg ifaces
-- & Lamdera.Wire2.Interfaces.modifyModul pkg ifaces
-- moduleName = T.pack $ Data.Utf8.toChars $ Src.getName modul

-- () <- debugPassText "starting canonical" "" (pure ())
canonical0 <- canonicalize pkg ifaces modul_
-- () <- debugPassText "starting canonical2" moduleName (pure ())

-- Add Canonical Wire gens, i.e. the `w2_[en|de]code_TYPENAME` functions
canonical1 <- Lamdera.Wire3.Core.addWireGenerations canonical0 pkg ifaces modul_
canonical2 <- Lamdera.Wire2.Core.addWireGenerations canonical1 pkg ifaces modul_
canonical2 <- Lamdera.Wire3.Core.addWireGenerations canonical0 pkg ifaces modul_
-- canonical2 <- Lamdera.Wire2.Core.addWireGenerations canonical1 pkg ifaces modul_

-- () <- unsafePerformIO $ do
-- case (pkg, Src.getName modul) of
Expand Down

0 comments on commit 4f6f032

Please sign in to comment.