forked from JustusAdam/language-haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds a test for JustusAdam#165, updates the test for JustusAdam#153
- Loading branch information
Showing
6 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
-- SYNTAX TEST "source.haskell" "Data constructor constraint arrow in comment" | ||
|
||
data D = C {- => X -} X | ||
-- ^ constant.other.haskell | ||
-- ^^ - keyword.operator.big-arrow.haskell | ||
-- ^^^^^^^^^^ comment.block.haskell | ||
-- ^ ^ storage.type.haskell | ||
-- ^ ^ - constant.other.haskell | ||
|
||
data D = C {- xxx -} => X | ||
-- ^ ^ storage.type.haskell | ||
-- ^^^^^^^^^ comment.block.haskell | ||
-- ^ constant.other.haskell | ||
|
||
data D = C-- => X | ||
-- ^ storage.type.haskell | ||
-- ^ constant.other.haskell | ||
-- ^^ - keyword.operator.big-arrow.haskell | ||
-- ^^^^^^^ comment.line.double-dash.haskell | ||
-- ^^^^^^^^^^ comment.block.haskell | ||
-- ^ - constant.other.haskell | ||
|
||
data D = C -- => X | ||
-- ^ storage.type.haskell | ||
-- ^ constant.other.haskell | ||
-- ^^ - keyword.operator.big-arrow.haskell | ||
-- ^^^^^^^ comment.line.double-dash.haskell | ||
-- ^^^^^^^^^^ comment.block.haskell | ||
-- ^ - constant.other.haskell | ||
|
||
data QCInst -- A much simplified version of ClsInst | ||
-- See Note [Quantified constraints] in GHC.Tc.Solver.Canonical | ||
= QCI { qci_ev :: CtEvidence -- Always of type forall tvs. context => ty | ||
-- ^^^ constant.other.haskell | ||
-- ^^^^^^ variable.other.member.definition.haskel | ||
-- ^^ keyword.operator.double-colon.haskell | ||
-- ^^^^^^^^^^ storage.type.haskell | ||
-- ^^ - keyword.operator.big-arrow.haskell | ||
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.line.double-dash.haskell | ||
|
||
-- Always Given | ||
, qci_tvs :: [TcTyVar] -- The tvs | ||
-- ^^^^^^^ variable.other.member.definition.haskel | ||
, qci_pred :: TcPredType -- The ty | ||
-- ^^^^^^^^ variable.other.member.definition.haskel | ||
, qci_pend_sc :: Bool -- Same as cc_pend_sc flag in CDictCan | ||
-- ^^^^^^^^^^^ variable.other.member.definition.haskel | ||
-- Invariant: True => qci_pred is a ClassPred | ||
} |