gen-imports 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+2/−5 lines, 2 files
Files
gen-imports.cabal view
@@ -1,5 +1,5 @@ name: gen-imports-version: 0.1.0.0+version: 0.1.0.1 synopsis: Code to generate instances for the package "ghc-instances" description: Functions in this package look at the hackage database to get all the public modules of packages.
src/Distribution/Hackage/Imports/Generate.hs view
@@ -3,8 +3,6 @@ module Distribution.Hackage.Imports.Generate where -import Data.ByteString (ByteString)- import Distribution.Hackage.DB (Hackage, Version, readHackage) import Distribution.PackageDescription ( GenericPackageDescription(packageDescription, condLibrary),@@ -27,7 +25,6 @@ import Data.Char (toUpper) import Data.Foldable (traverse_) import Data.List (intercalate)-import Debug.Trace (traceShowId) type PackageName = String @@ -61,7 +58,7 @@ languageCpp = "{-# LANGUAGE CPP #-}" guard = "#ifdef MIN_VERSION_" <> packageNameDoc packageNameDoc = text (replace_dash <$> toString packageName)- moduleHeader = "module " <> disp moduleName <> " where"+ moduleHeader = "module " <> disp moduleName <> " () where" endIf = case l of [] -> mempty _ -> "#endif"