Skip to content

Commit

Permalink
Undo 0c62a92
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Nov 14, 2023
1 parent 9465d8d commit 7cd5183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Aeson/TypeScript/Formatting.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ formatTSDeclaration (FormattingOptions {..}) (TSInterfaceDeclaration interfaceNa
modifiedInterfaceName = (\(li, name) -> li <> interfaceNameModifier name) . splitAt 1 $ interfaceName

formatTSField :: TSField -> String
formatTSField (TSField optional name typ maybeDoc) = makeDocPrefix maybeDoc <> [i|#{name}#{if optional then ("?" :: String) else ""}: #{typeNameModifier typ}|]
formatTSField (TSField optional name typ maybeDoc) = makeDocPrefix maybeDoc <> [i|#{name}#{if optional then ("?" :: String) else ""}: #{typ}|]

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / stack / ghc 9.6.3

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / stack / ghc 9.4.7

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.6.3

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.2.8

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.4.7

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.0.2

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 8.10.7

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.10.7

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.2.8

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.4.7

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.6.3

This binding for ‘maybeDoc’ shadows the existing binding

Check warning on line 45 in src/Data/Aeson/TypeScript/Formatting.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.0.2

This binding for ‘maybeDoc’ shadows the existing binding

formatTSDeclaration _ (TSRawDeclaration text) = text

Expand Down

0 comments on commit 7cd5183

Please sign in to comment.