Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
8c0eca3d
Commit
8c0eca3d
authored
Sep 11, 2015
by
Jan Stolarek
Browse files
Add assertions
parent
f30a4925
Changes
1
Show whitespace changes
Inline
Side-by-side
compiler/typecheck/FamInst.hs
View file @
8c0eca3d
...
...
@@ -423,7 +423,8 @@ makeInjectivityErrors
->
[
CoAxBranch
]
-- ^ List of injectivity conflicts
->
[(
SDoc
,
SrcSpan
)]
makeInjectivityErrors
tycon
axiom
inj
conflicts
=
let
lhs
=
coAxBranchLHS
axiom
=
ASSERT2
(
any
id
inj
,
text
"No injective type variables"
)
let
lhs
=
coAxBranchLHS
axiom
rhs
=
coAxBranchRHS
axiom
are_conflicts
=
not
$
null
conflicts
...
...
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