Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
5ca623a5
Commit
5ca623a5
authored
May 24, 2018
by
Ryan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor typos
parent
979f085c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
compiler/typecheck/TcDerivInfer.hs
compiler/typecheck/TcDerivInfer.hs
+2
-2
compiler/typecheck/TcEnv.hs
compiler/typecheck/TcEnv.hs
+2
-2
No files found.
compiler/typecheck/TcDerivInfer.hs
View file @
5ca623a5
...
...
@@ -746,8 +746,8 @@ simplifyDeriv pred tvs thetas
Note [Overlap and deriving]
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Consider some overlapping instances:
data
Show a => Show [a] where ..
data
Show [Char] where ...
instance
Show a => Show [a] where ..
instance
Show [Char] where ...
Now a data type with deriving:
data T a = MkT [a] deriving( Show )
...
...
compiler/typecheck/TcEnv.hs
View file @
5ca623a5
...
...
@@ -442,7 +442,7 @@ tcExtendKindEnvList :: [(Name, TcTyThing)] -> TcM r -> TcM r
-- ATcTyCon or APromotionErr
-- No need to update the global tyvars, or tcl_th_bndrs, or tcl_rdr
tcExtendKindEnvList
things
thing_inside
=
do
{
traceTc
"t
x
ExtendKindEnvList"
(
ppr
things
)
=
do
{
traceTc
"t
c
ExtendKindEnvList"
(
ppr
things
)
;
updLclEnv
upd_env
thing_inside
}
where
upd_env
env
=
env
{
tcl_env
=
extendNameEnvList
(
tcl_env
env
)
things
}
...
...
@@ -450,7 +450,7 @@ tcExtendKindEnvList things thing_inside
tcExtendKindEnv
::
NameEnv
TcTyThing
->
TcM
r
->
TcM
r
-- A variant of tcExtendKindEvnList
tcExtendKindEnv
extra_env
thing_inside
=
do
{
traceTc
"t
x
ExtendKindEnv"
(
ppr
extra_env
)
=
do
{
traceTc
"t
c
ExtendKindEnv"
(
ppr
extra_env
)
;
updLclEnv
upd_env
thing_inside
}
where
upd_env
env
=
env
{
tcl_env
=
tcl_env
env
`
plusNameEnv
`
extra_env
}
...
...
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