Changeset 12461 for src/Pugs/Val

Show
Ignore:
Timestamp:
08/19/06 15:41:50 (2 years ago)
Author:
gaal
Message:

* WIP towards Capture parsing:

16:40 < audreyt> you mean breaking the build? sure!

Location:
src/Pugs/Val
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Val/Base.hs

    r12459 r12461  
    2424    asNum x = fail $ "coerce fail: " ++ (show $ typeOf x) ++ " to PureNum" 
    2525    asStr    :: a -> m PureStr 
    26     asStr x = return (cast "<opaque>") -- XXX wrong 
     26    asStr _ = return (cast "<opaque>") -- XXX wrong 
    2727    -- "$item = VAL" 
    2828    asItem   :: a -> Maybe (m Val) 
  • src/Pugs/Val/Code.hs

    r12459 r12461  
    1 {- hopefully, in 6.6, this can be a first-class compilation unit. For now, 
    2  - it's #included from Pugs.Val. 
    3 {-# OPTIONS_GHC -fglasgow-exts -fallow-overlapping-instances #-} 
     1{- 
     2 - {-# OPTIONS_GHC -fglasgow-exts -fallow-overlapping-instances #-} 
    43module Pugs.Val.Code where 
    54import Pugs.Internals 
     
    143142 
    144143-- | Runtime Capture with dynamic Exp for leaves 
    145 type ExpCapt = Capt Exp 
     144--type ExpCapt = Capt Exp 
    146145-- | Static Capture with Val for leaves 
    147146type ValCapt = Capt Val 
    148147 
    149 type Exp = () -- XXX bogus