Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
dc52a1d0
Commit
dc52a1d0
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-04-07 21:33:40 by sof]
Undo previous commit
parent
3d82495b
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/utils/Outputable.lhs
+3
-25
3 additions, 25 deletions
ghc/compiler/utils/Outputable.lhs
with
3 additions
and
25 deletions
ghc/compiler/utils/Outputable.lhs
+
3
−
25
View file @
dc52a1d0
...
...
@@ -280,32 +280,10 @@ pprCols = (100 :: Int) -- could make configurable
printDoc :: Mode -> Handle -> Doc -> IO ()
printDoc mode hdl doc
= fullRender mode pprCols 1.5 put done doc
{-
= _readHandle hdl >>= \ htype ->
let fp = _filePtr htype in
fullRender mode pprCols 1.5 (put (fp::_Addr)) (done fp) doc
-}
where
{-
put fp (Chr c) next = _scc_ "hPutChar" ((_ccall_ stg_putc c (fp::_Addr))::PrimIO ()) `seqPrimIO` next
put fp (Str s) next = _scc_ "hPutStr" (put_str fp s) >> next
put fp (PStr s) next = _scc_ "hPutFS" (put_str fp (_UNPK_ s)) >> next
put_str fp (c1@(C# _) : cs)
= _ccall_ stg_putc c1 (fp::_Addr) `seqPrimIO`
put_str fp cs
put_str fp [] = return ()
-}
put (Chr c) next = _scc_ "hPutChar" (hPutChar hdl c) >> next
put (Str s) next = _scc_ "hPutStr" (hPutStr hdl s) >> next
put (PStr s) next = _scc_ "hPutFS" (hPutFS hdl s) >> next
{-
string_txt (Chr c) s2 = c : s2
string_txt (Str s1) s2 = s1 ++ s2
string_txt (PStr s1) s2 = _UNPK_ s1 ++ s2
done fp = ((_ccall_ stg_putc '\n' (fp::_Addr))::PrimIO ()) `seqPrimIO` return () --hPutChar hdl '\n'
-}
put (Chr c) next = hPutChar hdl c >> next
put (Str s) next = hPutStr hdl s >> next
put (PStr s) next = hPutFS hdl s >> next
done = hPutChar hdl '\n'
\end{code}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment