Changeset 20058 for src/Pugs/AST.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/AST.hs

    r19810 r20058  
    196196            merge _ old = case old of 
    197197                PEConstant{ pe_proto = MkRef (ICode oldCV) } 
    198                     | Just mc <- fromTypeable oldCV -> protoEntry 
     198                    | Just (mc :: VMultiCode) <- fromTypeable oldCV -> protoEntry 
    199199                        { pe_proto = MkRef . ICode $ protoCode 
    200200                            { mc_assoc      = code_assoc c `mappend` code_assoc mc 
     
    449449readCodesFromRef :: VRef -> Eval [VCode] 
    450450readCodesFromRef (MkRef (ICode c)) 
    451     | Just mc <- fromTypeable c = do 
     451    | Just (mc :: VMultiCode) <- fromTypeable c = do 
    452452        let names@(pivot:_) = Set.elems (mc_variants mc) 
    453453        rvs <- fmap concat . forM names $ \var -> do 
     
    460460                rvsGlobal <- readCodesFromRef =<< fromVal cvGlobal 
    461461                return (rvsGlobal ++ rvs) 
    462     | Just cv <- fromTypeable c = return [cv] 
     462    | Just (cv :: VCode) <- fromTypeable c = return [cv] 
    463463readCodesFromRef ref = do 
    464464    code <- fromVal =<< readRef ref