Changeset 15296 for src/Pugs/Compile

Show
Ignore:
Timestamp:
02/18/07 15:56:10 (21 months ago)
Author:
audreyt
Message:

* Convert VStr from String to ByteString?, and Syn from

String to ID, in Pugs. Benchmark shows the perf gain is 5%,
so it's not worth the trouble of writing a GHC 6.7-compatible
processor. The next commit will revert this commit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile/Pugs.hs

    r14414 r15296  
    173173    (globC, globT)  <- runWriterT $ compile glob 
    174174    (expC, expT)    <- runWriterT $ compile exp 
    175     return . VStr . unlines $ 
     175    return . _VStr . unlines $ 
    176176        [ "{-# OPTIONS_GHC -fglasgow-exts -fno-warn-unused-imports -fno-warn-unused-binds #-}" 
    177177        , "module Main where"