Skip to content

Commit

Permalink
fix(codegen): re-export identifiers module from top-level autogen module
Browse files Browse the repository at this point in the history
  • Loading branch information
vst committed May 28, 2024
1 parent 41c7c31 commit ae21301
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Postmap/Gencode/Haskell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ generateHaskell config@Config {..} Spec {..} = do
reexportModule <-
formatCode
[i|module #{configModuleName} (
module #{configModuleName}.Identifiers,
#{T.intercalate ",\n " $ fmap ("module " <>) recmods}
) where

import #{configModuleName}.Identifiers
#{T.intercalate "\n" $ fmap ("import " <>) recmods}
|]
TIO.writeFile (configOutputIdsModuleFile config) contentIdsModule
Expand Down

0 comments on commit ae21301

Please sign in to comment.