Skip to content

Commit

Permalink
fix(codegen): disable hlint on generated modules
Browse files Browse the repository at this point in the history
  • Loading branch information
vst committed May 28, 2024
1 parent 46adee1 commit 9e49390
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Postmap/Gencode/Haskell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ mkIdsModule Config {..} records =
{-\# LANGUAGE GeneralizedNewtypeDeriving \#-}
{-\# LANGUAGE NoImplicitPrelude \#-}
{-\# LANGUAGE OverloadedStrings \#-}
{-\# OPTIONS_GHC -Wno-orphans \#-}
{-\# OPTIONS_GHC -Wno-orphans -Wno-unrecognised-pragmas \#-}
{-\# HLINT ignore "Avoid restricted alias" \#-}

-- | This module provides for identifiers definitions for records.
module #{configModuleName}.Identifiers where
Expand Down Expand Up @@ -185,6 +186,9 @@ mkRecordDataType config@Config {..} record@Record {..} =
{-\# LANGUAGE OverloadedStrings \#-}
{-\# LANGUAGE StandaloneDeriving \#-}
{-\# LANGUAGE TypeOperators \#-}
{-\# OPTIONS_GHC -Wno-unrecognised-pragmas \#-}
{-\# HLINT ignore "Avoid restricted alias" \#-}
{-\# HLINT ignore "Use newtype instead of data" \#-}

-- | This module provides for /#{title}/ record definition, its database mapping and other related definitions.
module #{configModuleName}.Records.#{cnsName} where
Expand Down

0 comments on commit 9e49390

Please sign in to comment.