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
4,320
Issues
4,320
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
360
Merge Requests
360
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
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
Glasgow Haskell Compiler
GHC
Commits
309f8cfd
Commit
309f8cfd
authored
Jan 29, 2020
by
Richard Eisenberg
Committed by
Marge Bot
Feb 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary parentheses
parent
588acb99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
compiler/GHC/Hs/Lit.hs
compiler/GHC/Hs/Lit.hs
+14
-14
No files found.
compiler/GHC/Hs/Lit.hs
View file @
309f8cfd
...
...
@@ -154,20 +154,20 @@ overLitType (XOverLit nec) = noExtCon nec
-- | Convert a literal from one index type to another, updating the annotations
-- according to the relevant 'Convertable' instance
convertLit
::
(
ConvertIdX
a
b
)
=>
HsLit
a
->
HsLit
b
convertLit
(
HsChar
a
x
)
=
(
HsChar
(
convert
a
)
x
)
convertLit
(
HsCharPrim
a
x
)
=
(
HsCharPrim
(
convert
a
)
x
)
convertLit
(
HsString
a
x
)
=
(
HsString
(
convert
a
)
x
)
convertLit
(
HsStringPrim
a
x
)
=
(
HsStringPrim
(
convert
a
)
x
)
convertLit
(
HsInt
a
x
)
=
(
HsInt
(
convert
a
)
x
)
convertLit
(
HsIntPrim
a
x
)
=
(
HsIntPrim
(
convert
a
)
x
)
convertLit
(
HsWordPrim
a
x
)
=
(
HsWordPrim
(
convert
a
)
x
)
convertLit
(
HsInt64Prim
a
x
)
=
(
HsInt64Prim
(
convert
a
)
x
)
convertLit
(
HsWord64Prim
a
x
)
=
(
HsWord64Prim
(
convert
a
)
x
)
convertLit
(
HsInteger
a
x
b
)
=
(
HsInteger
(
convert
a
)
x
b
)
convertLit
(
HsRat
a
x
b
)
=
(
HsRat
(
convert
a
)
x
b
)
convertLit
(
HsFloatPrim
a
x
)
=
(
HsFloatPrim
(
convert
a
)
x
)
convertLit
(
HsDoublePrim
a
x
)
=
(
HsDoublePrim
(
convert
a
)
x
)
convertLit
(
XLit
a
)
=
(
XLit
(
convert
a
)
)
convertLit
(
HsChar
a
x
)
=
HsChar
(
convert
a
)
x
convertLit
(
HsCharPrim
a
x
)
=
HsCharPrim
(
convert
a
)
x
convertLit
(
HsString
a
x
)
=
HsString
(
convert
a
)
x
convertLit
(
HsStringPrim
a
x
)
=
HsStringPrim
(
convert
a
)
x
convertLit
(
HsInt
a
x
)
=
HsInt
(
convert
a
)
x
convertLit
(
HsIntPrim
a
x
)
=
HsIntPrim
(
convert
a
)
x
convertLit
(
HsWordPrim
a
x
)
=
HsWordPrim
(
convert
a
)
x
convertLit
(
HsInt64Prim
a
x
)
=
HsInt64Prim
(
convert
a
)
x
convertLit
(
HsWord64Prim
a
x
)
=
HsWord64Prim
(
convert
a
)
x
convertLit
(
HsInteger
a
x
b
)
=
HsInteger
(
convert
a
)
x
b
convertLit
(
HsRat
a
x
b
)
=
HsRat
(
convert
a
)
x
b
convertLit
(
HsFloatPrim
a
x
)
=
HsFloatPrim
(
convert
a
)
x
convertLit
(
HsDoublePrim
a
x
)
=
HsDoublePrim
(
convert
a
)
x
convertLit
(
XLit
a
)
=
XLit
(
convert
a
)
{-
Note [ol_rebindable]
...
...
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