X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=utils%2Fext-core%2FLanguage%2FCore%2FInterp.hs;fp=utils%2Fext-core%2FInterp.hs;h=0a4ac65527063e61b7ed7bd1b60de38b6b88ec12;hp=2c3f65e41ecf3de536b5a15852686d3debd4e70b;hb=b84b5969798530dbf5be9b8bb795b77e5dfbf042;hpb=70f16d3fb8f21fbd198151d59c4ab29023dd9fda 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 --- 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 @@ -15,7 +15,7 @@ The only major omission is garbage collection. 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 @@ -25,9 +25,9 @@ import Data.List 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!)