summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorJoey Payne <jyapayne@gmail.com>2015-04-24 10:06:56 -0600
committerJoey Payne <jyapayne@gmail.com>2015-04-24 10:06:56 -0600
commit6c6a52ff3ae260221ad99f048c7a9effcaa5111e (patch)
tree8163cf6453c7f882978ad97db7551db723adc3a8 /compiler
parent5979d35ab2052b467e89ade90a7b3a47a50e2a28 (diff)
downloadNim-6c6a52ff3ae260221ad99f048c7a9effcaa5111e.tar.gz
Added explicit imports for compiler modules to fix compiling nimsuggest.
See https://github.com/nim-lang/nimsuggest/issues/1
Diffstat (limited to 'compiler')
-rw-r--r--compiler/nimfix/nimfix.nim5
-rw-r--r--compiler/nimfix/pretty.nim6
-rw-r--r--compiler/nimfix/prettybase.nim3
3 files changed, 9 insertions, 5 deletions
diff --git a/compiler/nimfix/nimfix.nim b/compiler/nimfix/nimfix.nim
index 7b42537c4..0c5e2a88b 100644
--- a/compiler/nimfix/nimfix.nim
+++ b/compiler/nimfix/nimfix.nim
@@ -10,8 +10,9 @@
 ## Nimfix is a tool that helps to convert old-style Nimrod code to Nim code.
 
 import strutils, os, parseopt
-import options, commands, modules, sem, passes, passaux, pretty, msgs, nimconf,
-  extccomp, condsyms, lists
+import compiler/options, compiler/commands, compiler/modules, compiler/sem,
+       compiler/passes, compiler/passaux, pretty, compiler/msgs,
+       compiler/nimconf, compiler/extccomp, compiler/condsyms, compiler/lists
 
 const Usage = """
 Nimfix - Tool to patch Nim code
diff --git a/compiler/nimfix/pretty.nim b/compiler/nimfix/pretty.nim
index acac574af..081a1d372 100644
--- a/compiler/nimfix/pretty.nim
+++ b/compiler/nimfix/pretty.nim
@@ -11,8 +11,10 @@
 ## to convert Nim code into a consistent style.
 
 import 
-  strutils, os, options, ast, astalgo, msgs, ropes, idents,
-  intsets, strtabs, semdata, prettybase
+  strutils, os, intsets, strtabs, ropes,
+  compiler/options, compiler/ast, compiler/astalgo,
+  compiler/msgs, compiler/idents, compiler/semdata,
+  prettybase
 
 type
   StyleCheck* {.pure.} = enum None, Warn, Auto
diff --git a/compiler/nimfix/prettybase.nim b/compiler/nimfix/prettybase.nim
index 225b78479..839c1ff8f 100644
--- a/compiler/nimfix/prettybase.nim
+++ b/compiler/nimfix/prettybase.nim
@@ -7,7 +7,8 @@
 #    distribution, for details about the copyright.
 #
 
-import ast, msgs, strutils, idents, lexbase, streams
+import strutils, lexbase, streams, compiler/ast, compiler/msgs,
+       compiler/idents
 from os import splitFile
 
 type