Changeset 20058 for src/Pugs/Eval.hs

Show
Ignore:
Timestamp:
03/04/08 22:06:31 (9 months ago)
Author:
gbacon
Message:

Build the library, but the executable still doesn't link. Why aren't we building an Executable with cabal?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval.hs

    r17873 r20058  
    185185evalRef ref = do 
    186186    if refType ref == (mkType "Thunk") then forceRef ref else do 
    187     val <- catchT $ \esc -> do 
     187    val <- catchT $ \(esc :: Val -> Eval ()) -> do 
    188188        MkEnv{ envContext = cxt, envLValue = lv } <- ask 
    189189        let typ = typeOfCxt cxt 
     
    281281            Nothing 
    282282                | SType <- sig      -> return . VType . cast $ if isQualifiedVar var 
    283                     then cast $ Buf.join (__"::") [cast pkg, cast name] 
     283                    then cast $ Buf.intercalate (__"::") [cast pkg, cast name] 
    284284                    else name 
    285285                | isGlobalVar var || pkg `notElem` [emptyPkg, callerPkg, outerPkg, contextPkg] -> do 
     
    14841484                    --- not scalarRef! -- use the new "transparent IType" thing! 
    14851485                    case showType (typeOfSigilVar var) of 
    1486                         "Hash"  -> ($ v) . fix $ \redo x -> case x of 
     1486                        "Hash"  -> ($ v) . fix $ \(redo :: Val -> Eval Val) x -> case x of 
    14871487                            VRef (MkRef (IHash h)) -> return (VRef $ hashRef h)  
    14881488                            VRef ref@(MkRef IScalar{}) -> redo =<< readRef ref 
    14891489                            _ -> fmap (VRef . hashRef) (fromVal v :: Eval VHash) 
    1490                         "Array" -> ($ v) . fix $ \redo x -> case x of 
     1490                        "Array" -> ($ v) . fix $ \(redo :: Val -> Eval Val) x -> case x of 
    14911491                            VRef (MkRef (IArray a)) -> return (VRef $ arrayRef a)  
    14921492                            VRef ref@(MkRef IScalar{}) -> redo =<< readRef ref