Changeset 13260 for src/Pugs/Val
- Timestamp:
- 09/13/06 16:23:15 (2 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Val/Code.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Val/Code.hs
r13250 r13260 146 146 147 147 prettySig :: Sig -> Doc 148 prettySig s@(SigMethSingle {}) = (prettyParam (s_invocant s) True True)<> colon `invSpace` (prettySubSig s)148 prettySig s@(SigMethSingle {}) = invocant <> colon `invSpace` (prettySubSig s) 149 149 where 150 invocant = if (v_name $ p_variable $ s_invocant s) == nullID then text "$ " else prettyParam (s_invocant s) True True 150 151 invSpace :: Doc -> Doc -> Doc 151 152 invSpace = if (isEmpty $ prettySubSig s) then (<>) else (<+>)
