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/Parser/Operator.hs

    r19198 r20058  
    2727 
    2828newtype OpName = MkOpName ID 
    29     deriving (Show, Eq, Typeable, (:>:) String, (:>:) ByteString, (:<:) ByteString, (:>:) ID) 
     29    deriving (Show, Eq, Typeable, (:>:) String, (:>:) ByteString, (:<:) ByteString, (:>:) ID, (:<:) String, (:<:) ID) 
    3030 
    3131instance Ord OpName where 
    3232    compare (MkOpName MkID{ idKey = a, idBuf = x }) (MkOpName MkID{ idKey = b, idBuf = y }) 
    3333        = compare (Buf.length y) (Buf.length x) `mappend` compare b a 
     34 
     35instance ((:<:) OpName) ByteString where 
     36    castBack (MkOpName id) = castBack id 
    3437 
    3538-- Not yet transcribed into a full optable parser with dynamic precedence 
     
    650653            notFollowedBy (char '(' <|> (char ':' >> char ':')) 
    651654            possiblyApplyMacro $ App (Var var) Nothing [] 
    652         parseOneTerm (name, categ) = do 
     655        parseOneTerm (name :: OpName, categ) = do 
    653656            symbol (cast name) 
    654657            return MkVar