Changeset 13260 for src/Pugs/Val

Show
Ignore:
Timestamp:
09/13/06 16:23:15 (2 years ago)
Author:
gaal
Message:

* expose a build break and fix it (#include--)
* positionals are not required named args
* print, but not parse, :($ :)
* add the desired sig to test description, to ease analysis

of parsefails.

Files:
1 modified

Legend:

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

    r13250 r13260  
    146146     
    147147prettySig :: Sig -> Doc 
    148 prettySig s@(SigMethSingle {}) = (prettyParam (s_invocant s) True True) <> colon `invSpace` (prettySubSig s) 
     148prettySig s@(SigMethSingle {}) = invocant <> colon `invSpace` (prettySubSig s) 
    149149    where 
     150    invocant = if (v_name $ p_variable $ s_invocant s) == nullID then text "$ " else prettyParam (s_invocant s) True True 
    150151    invSpace :: Doc -> Doc -> Doc 
    151152    invSpace = if (isEmpty $ prettySubSig s) then (<>) else (<+>)