Cabalize ext-core tools
[ghc-hetmet.git] / utils / ext-core / Language / Core / ParseGlue.hs
similarity index 64%
rename from utils/ext-core/ParseGlue.hs
rename to utils/ext-core/Language/Core/ParseGlue.hs
index 2e196c0..3743792 100644 (file)
@@ -1,4 +1,4 @@
-module ParseGlue where
+module Language.Core.ParseGlue where
 
 import Encoding
 
@@ -60,28 +60,3 @@ data Token =
  | TKstring String 
  | TKchar Char 
  | TKEOF
-
--- ugh
-splitModuleName mn = 
-   let decoded = zDecodeString mn
-       -- Triple ugh.
-       -- We re-encode the individual parts so that:
-       -- main:Foo_Bar.Quux.baz
-       -- prints as:
-       -- main:FoozuBarziQuux.baz
-       -- and not:
-       -- main:Foo_BarziQuux.baz
-       parts   = map zEncodeString $ filter (notElem '.') $ groupBy 
-                   (\ c1 c2 -> c1 /= '.' && c2 /= '.') 
-                 decoded in
-     (take (length parts - 1) parts, last parts)
-
-
-
-
-
-
-
-
-
-