Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobias Decking
GHC
Commits
38113ad2
Commit
38113ad2
authored
Dec 08, 2010
by
benl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -dppr-colsN to set width of dumps
parent
1e4f900a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
compiler/main/StaticFlagParser.hs
compiler/main/StaticFlagParser.hs
+1
-0
compiler/main/StaticFlags.hs
compiler/main/StaticFlags.hs
+7
-2
compiler/utils/Pretty.lhs
compiler/utils/Pretty.lhs
+2
-2
No files found.
compiler/main/StaticFlagParser.hs
View file @
38113ad2
...
...
@@ -122,6 +122,7 @@ static_flags = [
------ Debugging ----------------------------------------------------
,
Flag
"dppr-debug"
(
PassFlag
addOpt
)
,
Flag
"dppr-cols"
(
AnySuffix
addOpt
)
,
Flag
"dppr-user-length"
(
AnySuffix
addOpt
)
,
Flag
"dppr-case-as-let"
(
PassFlag
addOpt
)
,
Flag
"dsuppress-all"
(
PassFlag
addOpt
)
...
...
compiler/main/StaticFlags.hs
View file @
38113ad2
...
...
@@ -21,6 +21,7 @@ module StaticFlags (
-- Output style options
opt_PprUserLength
,
opt_PprCols
,
opt_PprCaseAsLet
,
opt_PprStyle_Debug
,
opt_TraceLevel
,
opt_NoDebugOutput
,
...
...
@@ -233,8 +234,12 @@ opt_SuppressTypeSignatures
-- | Display case expressions with a single alternative as strict let bindings
opt_PprCaseAsLet
::
Bool
opt_PprCaseAsLet
=
lookUp
(
fsLit
"-dppr-case-as-let"
)
opt_PprCaseAsLet
=
lookUp
(
fsLit
"-dppr-case-as-let"
)
-- | Set the maximum width of the dumps
opt_PprCols
::
Int
opt_PprCols
=
lookup_def_int
"-dppr-cols"
100
opt_PprStyle_Debug
::
Bool
opt_PprStyle_Debug
=
lookUp
(
fsLit
"-dppr-debug"
)
...
...
compiler/utils/Pretty.lhs
View file @
38113ad2
...
...
@@ -185,7 +185,7 @@ import BufWrite
import FastString
import FastTypes
import Panic
import StaticFlags
import Numeric (fromRat)
import System.IO
--import Foreign.Ptr (castPtr)
...
...
@@ -999,7 +999,7 @@ spaces n | n <=# _ILIT(0) = ""
\begin{code}
pprCols :: Int
pprCols =
100 -- could make configurable
pprCols =
opt_PprCols
printDoc :: Mode -> Handle -> Doc -> IO ()
printDoc LeftMode hdl doc
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment