Changeset 12212 for src/Pugs/Val

Show
Ignore:
Timestamp:
08/14/06 12:02:19 (2 years ago)
Author:
audreyt
Message:

* Before I go in and intern everything, here is Judy.Hash-interned

Pugs.Type implementation. This should have no functional changes,
except things suddenly feeling much, much faster.
(up to 2x according to selected micro benchmarks; smoke data later)

Files:
1 modified

Legend:

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

    r12198 r12212  
    103103-- PureStr 
    104104 
    105 instance ((:>:) String) ByteString where cast = Char8.unpack 
    106 instance ((:<:) String) ByteString where castBack = Char8.pack 
    107  
    108 newtype PureStr = MkStr ByteString 
    109     deriving (Typeable, Show, Eq, Ord, Data, (:>:) String, (:<:) String, (:>:) ByteString, (:<:) ByteString) 
     105newtype PureStr = MkStr ByteString deriving 
     106    ( Typeable, Show, Eq, Ord, Data 
     107    , (:>:) ID, (:<:) ID 
     108    , (:>:) String, (:<:) String 
     109    , (:>:) ByteString, (:<:) ByteString 
     110    ) 
    110111 
    111112parseInt :: PureStr -> Int