HACKING: rm default comments
This commit is contained in:
parent
c0ef142c41
commit
c0bd5f3c37
@ -6,9 +6,6 @@ main :: IO ()
|
|||||||
main = hsimport $ defaultConfig { prettyPrint = prettyPrint
|
main = hsimport $ defaultConfig { prettyPrint = prettyPrint
|
||||||
, findImportPos = findImportPos }
|
, findImportPos = findImportPos }
|
||||||
where
|
where
|
||||||
-- This is a bogus implementation of prettyPrint, because it doesn't
|
|
||||||
-- handle the qualified import case nor does it considers any explicitely
|
|
||||||
-- imported or hidden symbols.
|
|
||||||
prettyPrint :: HS.ImportDecl -> String
|
prettyPrint :: HS.ImportDecl -> String
|
||||||
prettyPrint (HS.ImportDecl sloc modname qual _ _ mpkg mas mspec) =
|
prettyPrint (HS.ImportDecl sloc modname qual _ _ mpkg mas mspec) =
|
||||||
"import " ++ (ifStr qual "qualified") ++
|
"import " ++ (ifStr qual "qualified") ++
|
||||||
@ -35,9 +32,6 @@ main = hsimport $ defaultConfig { prettyPrint = prettyPrint
|
|||||||
printSpec = HS.prettyPrint
|
printSpec = HS.prettyPrint
|
||||||
|
|
||||||
|
|
||||||
-- This findImportPos implementation will always add the new import
|
|
||||||
-- declaration at the end of the current ones. The data type ImportPos
|
|
||||||
-- has the two constructors After and Before.
|
|
||||||
findImportPos :: HS.ImportDecl -> [HS.ImportDecl] -> Maybe ImportPos
|
findImportPos :: HS.ImportDecl -> [HS.ImportDecl] -> Maybe ImportPos
|
||||||
findImportPos _ [] = Nothing
|
findImportPos _ [] = Nothing
|
||||||
findImportPos newImport currentImports = Just findPos
|
findImportPos newImport currentImports = Just findPos
|
||||||
|
Loading…
Reference in New Issue
Block a user