Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
b1086a07
Commit
b1086a07
authored
May 30, 2007
by
simonpj@microsoft.com
Browse files
Fix bogus check for strictness in newtypes
parent
2b5d4ce9
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/typecheck/TcTyClsDecls.lhs
View file @
b1086a07
...
@@ -1008,7 +1008,8 @@ checkNewDataCon con
...
@@ -1008,7 +1008,8 @@ checkNewDataCon con
-- Return type is (T a b c)
-- Return type is (T a b c)
; checkTc (null ex_tvs && null theta) (newtypeExError con)
; checkTc (null ex_tvs && null theta) (newtypeExError con)
-- No existentials
-- No existentials
; checkTc (null (dataConStrictMarks con)) (newtypeStrictError con)
; checkTc (not (any isMarkedStrict (dataConStrictMarks con)))
(newtypeStrictError con)
-- No strictness
-- No strictness
}
}
where
where
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment