projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cabalize ext-core tools
[ghc-hetmet.git]
/
utils
/
ext-core
/
Language
/
Core
/
Interp.hs
diff --git
a/utils/ext-core/Interp.hs
b/utils/ext-core/Language/Core/Interp.hs
similarity index 99%
rename from
utils/ext-core/Interp.hs
rename to
utils/ext-core/Language/Core/Interp.hs
index
2c3f65e
..
0a4ac65
100644
(file)
--- a/
utils/ext-core/Interp.hs
+++ b/
utils/ext-core/Language/Core/Interp.hs
@@
-1,4
+1,4
@@
-{-# OPTIONS -Wall -fno-warn-name-shadowing -XPatternGuards #-}
+{-# OPTIONS -Wall -fno-warn-name-shadowing -XPatternGuards -fglasgow-exts #-}
{-
Interprets the subset of well-typed Core programs for which
(a) All constructor and primop applications are saturated
{-
Interprets the subset of well-typed Core programs for which
(a) All constructor and primop applications are saturated
@@
-15,7
+15,7
@@
The only major omission is garbage collection.
Just a sampling of primitive types and operators are included.
-}
Just a sampling of primitive types and operators are included.
-}
-module Interp ( evalProgram ) where
+module Language.Core.Interp ( evalProgram ) where
import Control.Monad.Error
import Control.Monad.State
import Control.Monad.Error
import Control.Monad.State
@@
-25,9
+25,9
@@
import Data.List
import GHC.Exts hiding (Ptr)
import System.IO
import GHC.Exts hiding (Ptr)
import System.IO
-import Core
-import Env
-import Printer()
+import Language.Core.Core
+import Language.Core.Env
+import Language.Core.Printer()
data HeapValue =
Hconstr Dcon [Value] -- constructed value (note: no qualifier needed!)
data HeapValue =
Hconstr Dcon [Value] -- constructed value (note: no qualifier needed!)