Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence warnings when exporting empty modules #9

Merged
merged 1 commit into from Nov 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion library/Autoexporter.hs
Expand Up @@ -105,7 +105,8 @@ isHaskellFile x = List.isSuffixOf ".hs" x || List.isSuffixOf ".lhs" x
renderModule :: String -> [String] -> String
renderModule name modules =
unlines'
[ unwords ["module", name, "("]
[ "{-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-}"
, unwords ["module", name, "("]
, unlines' (map renderExport modules)
, ") where"
, unlines' (map renderImport modules)
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
@@ -1,5 +1,5 @@
name: autoexporter
version: 1.1.14
version: 1.1.15

category: Utility
description: Autoexporter automatically re-exports modules.
Expand Down