summaryrefslogtreecommitdiff
path: root/docs/core-spec/CoreLint.ott
diff options
context:
space:
mode:
authorTakenobu Tani <takenobu.hs@gmail.com>2019-01-02 12:01:47 +0900
committerTakenobu Tani <takenobu.hs@gmail.com>2019-01-02 12:01:47 +0900
commit9c0e3e44489e601e6cfa3753460a98036668d5bf (patch)
treea1ab296c228e752080ef5e12db4210bd70d167b1 /docs/core-spec/CoreLint.ott
parent7fcc07c89fcc7f17c4a54e23bba884c8cc0982c3 (diff)
downloadhaskell-9c0e3e44489e601e6cfa3753460a98036668d5bf.tar.gz
core-spec: Modify `.lhs` to `.hs` (source files)
Modify old filename `.lhs` to `.hs` in following files: * docs/core-spec/README * docs/core-spec/CoreLint.ott * docs/core-spec/CoreSyn.ott * docs/core-spec/core-spec.mng [ci skip]
Diffstat (limited to 'docs/core-spec/CoreLint.ott')
-rw-r--r--docs/core-spec/CoreLint.ott44
1 files changed, 22 insertions, 22 deletions
diff --git a/docs/core-spec/CoreLint.ott b/docs/core-spec/CoreLint.ott
index 6ace483cb5..606e45c190 100644
--- a/docs/core-spec/CoreLint.ott
+++ b/docs/core-spec/CoreLint.ott
@@ -12,7 +12,7 @@
defns
CoreLint :: '' ::=
-defn |- prog program :: :: lintCoreBindings :: 'Prog_' {{ com Program typing, \coderef{coreSyn/CoreLint.lhs}{lintCoreBindings} }}
+defn |- prog program :: :: lintCoreBindings :: 'Prog_' {{ com Program typing, \coderef{coreSyn/CoreLint.hs}{lintCoreBindings} }}
{{ tex \labeledjudge{prog} [[program]] }}
by
@@ -22,7 +22,7 @@ no_duplicates </ bindingi // i />
--------------------- :: CoreBindings
|-prog </ bindingi // i />
-defn G |- bind binding :: :: lint_bind :: 'Binding_' {{ com Binding typing, \coderef{coreSyn/CoreLint.lhs}{lint\_bind} }}
+defn G |- bind binding :: :: lint_bind :: 'Binding_' {{ com Binding typing, \coderef{coreSyn/CoreLint.hs}{lint\_bind} }}
{{ tex [[G]] \labeledjudge{bind} [[binding]] }}
by
@@ -34,7 +34,7 @@ G |-bind n = e
---------------------- :: Rec
G |-bind rec </ ni = ei // i />
-defn G |- sbind n <- e :: :: lintSingleBinding :: 'SBinding_' {{ com Single binding typing, \coderef{coreSyn/CoreLint.lhs}{lintSingleBinding} }}
+defn G |- sbind n <- e :: :: lintSingleBinding :: 'SBinding_' {{ com Single binding typing, \coderef{coreSyn/CoreLint.hs}{lintSingleBinding} }}
{{ tex [[G]] \labeledjudge{sbind} [[n]] [[<-]] [[e]] }}
by
@@ -45,7 +45,7 @@ G |-name z_t ok
----------------- :: SingleBinding
G |-sbind z_t <- e
-defn G ; D |-sjbind l vars <- e : t :: :: lintSingleBinding_joins :: 'SJBinding_' {{ com Single join binding typing, \coderef{coreSyn/CoreLint.lhs}{lintSingleBinding} }}
+defn G ; D |-sjbind l vars <- e : t :: :: lintSingleBinding_joins :: 'SJBinding_' {{ com Single join binding typing, \coderef{coreSyn/CoreLint.hs}{lintSingleBinding} }}
{{ tex [[G]];[[D]] \labeledjudge{sjbind} [[l]] \, [[vars]] [[<-]] [[e]] : [[t]] }}
by
@@ -60,7 +60,7 @@ split_I s = </ sj // j /> t
G; D |-sjbind p/I_s </ nj // j /> <- e : t
defn G ; D |- tm e : t :: :: lintCoreExpr :: 'Tm_'
- {{ com Expression typing, \coderef{coreSyn/CoreLint.lhs}{lintCoreExpr} }}
+ {{ com Expression typing, \coderef{coreSyn/CoreLint.hs}{lintCoreExpr} }}
{{ tex [[G]]; [[D]] \labeledjudge{tm} [[e]] : [[t]] }}
by
@@ -171,7 +171,7 @@ G |-co g : t1 k1~Rep k2 t2
G; D |-tm g : (~Rep#) k1 k2 t1 t2
defn G |- name n ok :: :: lintSingleBinding_lintBinder :: 'Name_'
- {{ com Name consistency check, \coderef{coreSyn/CoreLint.lhs}{lintSingleBinding\#lintBinder} }}
+ {{ com Name consistency check, \coderef{coreSyn/CoreLint.hs}{lintSingleBinding\#lintBinder} }}
{{ tex [[G]] \labeledjudge{n} [[n]] [[ok]] }}
by
@@ -197,7 +197,7 @@ k' = * \/ k' = #
G |-label p / I _ t ok
defn G |- bnd n ok :: :: lintBinder :: 'Binding_'
- {{ com Binding consistency, \coderef{coreSyn/CoreLint.lhs}{lintBinder} }}
+ {{ com Binding consistency, \coderef{coreSyn/CoreLint.hs}{lintBinder} }}
{{ tex [[G]] \labeledjudge{bnd} [[n]] [[ok]] }}
by
@@ -211,7 +211,7 @@ G |-ki k ok
G |-bnd alpha_k ok
defn G |- co g : t1 k1 ~ R k2 t2 :: :: lintCoercion :: 'Co_'
- {{ com Coercion typing, \coderef{coreSyn/CoreLint.lhs}{lintCoercion} }}
+ {{ com Coercion typing, \coderef{coreSyn/CoreLint.hs}{lintCoercion} }}
{{ tex [[G]] \labeledjudge{co} [[g]] : [[t1]] \mathop{ {}^{[[k1]]} {\sim}_{[[R]]}^{[[k2]]} } [[t2]] }}
by
@@ -365,7 +365,7 @@ G |-ty t'2 : k0'
G |-co mu </ ti // i /> $ </ gj // j /> : t'1 k0 ~R' k0' t'2
defn G |- axk [ namesroles |-> gs ] ~> ( subst1 , subst2 ) :: :: check_ki :: 'AxiomKind_'
- {{ com Axiom argument kinding, \coderef{coreSyn/CoreLint.lhs}{lintCoercion\#check\_ki} }}
+ {{ com Axiom argument kinding, \coderef{coreSyn/CoreLint.hs}{lintCoercion\#check\_ki} }}
{{ tex [[G]] \labeledjudge{axk} [ [[namesroles]] [[|->]] [[gs]] ] [[~>]] ([[subst1]], [[subst2]]) }}
by
@@ -379,7 +379,7 @@ G |-co g0 : t1 {subst1(k)}~R subst2(k) t2
G |-axk [ namesroles, n_R |-> gs, g0 ] ~> (subst1 [n |-> t1], subst2 [n |-> t2])
defn validRoles T :: :: checkValidRoles :: 'Cvr_'
- {{ com Type constructor role validity, \coderef{typecheck/TcTyClsDecls.lhs}{checkValidRoles} }}
+ {{ com Type constructor role validity, \coderef{typecheck/TcTyClsDecls.hs}{checkValidRoles} }}
by
</ Ki // i /> = tyConDataCons T
@@ -389,7 +389,7 @@ by
validRoles T
defn validDcRoles </ Raa // aa /> K :: :: check_dc_roles :: 'Cdr_'
- {{ com Data constructor role validity, \coderef{typecheck/TcTyClsDecls.lhs}{check\_dc\_roles} }}
+ {{ com Data constructor role validity, \coderef{typecheck/TcTyClsDecls.hs}{check\_dc\_roles} }}
by
forall </ naa // aa />. forall </ mbb // bb />. </ tcc // cc /> $ -> T </ naa // aa /> = dataConRepType K
@@ -398,7 +398,7 @@ forall </ naa // aa />. forall </ mbb // bb />. </ tcc // cc /> $ -> T </ naa //
validDcRoles </ Raa // aa /> K
defn O |- t : R :: :: check_ty_roles :: 'Ctr_'
- {{ com Type role validity, \coderef{typecheck/TcTyClsDecls.lhs}{check\_ty\_roles} }}
+ {{ com Type role validity, \coderef{typecheck/TcTyClsDecls.hs}{check\_ty\_roles} }}
{{ tex [[O]] \labeledjudge{ctr} [[t]] : [[R]] }}
by
@@ -441,7 +441,7 @@ O |- t |> g : R
O |- g : Ph
defn R1 <= R2 :: :: ltRole :: 'Rlt_'
- {{ com Sub-role relation, \coderef{types/Coercion.lhs}{ltRole} }}
+ {{ com Sub-role relation, \coderef{types/Coercion.hs}{ltRole} }}
{{ tex [[R1]] \leq [[R2]] }}
by
@@ -455,7 +455,7 @@ R <= Ph
R <= R
defn G |- ki k ok :: :: lintKind :: 'K_'
- {{ com Kind validity, \coderef{coreSyn/CoreLint.lhs}{lintKind} }}
+ {{ com Kind validity, \coderef{coreSyn/CoreLint.hs}{lintKind} }}
{{ tex [[G]] \labeledjudge{k} [[k]] [[ok]] }}
by
@@ -468,7 +468,7 @@ G |-ty k : #
G |-ki k ok
defn G |- ty t : k :: :: lintType :: 'Ty_'
- {{ com Kinding, \coderef{coreSyn/CoreLint.lhs}{lintType} }}
+ {{ com Kinding, \coderef{coreSyn/CoreLint.hs}{lintType} }}
{{ tex [[G]] \labeledjudge{ty} [[t]] : [[k]] }}
by
@@ -518,7 +518,7 @@ G |-co g : t1 k1 ~Rep k2 t2
G |-ty g : (~Rep#) k1 k2 t1 t2
defn G |- subst n |-> t ok :: :: lintTyKind :: 'Subst_'
- {{ com Substitution consistency, \coderef{coreSyn/CoreLint.lhs}{lintTyKind} }}
+ {{ com Substitution consistency, \coderef{coreSyn/CoreLint.hs}{lintTyKind} }}
{{ tex [[G]] \labeledjudge{subst} [[n]] [[|->]] [[t]] [[ok]] }}
by
@@ -527,7 +527,7 @@ G |-ty t : k
G |-subst z_k |-> t ok
defn G ; D ; s |- altern alt : t :: :: lintCoreAlt :: 'Alt_'
- {{ com Case alternative consistency, \coderef{coreSyn/CoreLint.lhs}{lintCoreAlt} }}
+ {{ com Case alternative consistency, \coderef{coreSyn/CoreLint.hs}{lintCoreAlt} }}
{{ tex [[G]];[[D]];[[s]] \labeledjudge{alt} [[alt]] : [[t]] }}
by
@@ -552,7 +552,7 @@ G'; D |-tm e : t
G; D; T </ sj // j /> |-altern K </ ni // i /> -> e : t
defn t' = t { </ si // , // i /> } :: :: applyTys :: 'ApplyTys_'
- {{ com Telescope substitution, \coderef{types/Type.lhs}{applyTys} }}
+ {{ com Telescope substitution, \coderef{types/Type.hs}{applyTys} }}
by
--------------------- :: Empty
@@ -564,7 +564,7 @@ t'' = t'[n |-> s]
t'' = (forall n. t) { s, </ si // i /> }
defn G |- altbnd vars : t1 ~> t2 :: :: lintAltBinders :: 'AltBinders_'
- {{ com Case alternative binding consistency, \coderef{coreSyn/CoreLint.lhs}{lintAltBinders} }}
+ {{ com Case alternative binding consistency, \coderef{coreSyn/CoreLint.hs}{lintAltBinders} }}
{{ tex [[G]] \labeledjudge{altbnd} [[vars]] : [[t1]] [[~>]] [[t2]] }}
by
@@ -585,7 +585,7 @@ G |-altbnd </ ni // i /> : t2 ~> s
G |-altbnd x_t1, </ ni // i /> : (t1 -> t2) ~> s
defn G |- arrow k1 -> k2 : k :: :: lintArrow :: 'Arrow_'
- {{ com Arrow kinding, \coderef{coreSyn/CoreLint.lhs}{lintArrow} }}
+ {{ com Arrow kinding, \coderef{coreSyn/CoreLint.hs}{lintArrow} }}
{{ tex [[G]] \labeledjudge{\rightarrow} [[k1]] [[->]] [[k2]] : [[k]] }}
by
@@ -595,7 +595,7 @@ k2 = TYPE s
G |-arrow k1 -> k2 : *
defn G |- app kinded_types : k1 ~> k2 :: :: lint_app :: 'App_'
- {{ com Type application kinding, \coderef{coreSyn/CoreLint.lhs}{lint\_app} }}
+ {{ com Type application kinding, \coderef{coreSyn/CoreLint.hs}{lint\_app} }}
{{ tex [[G]] \labeledjudge{app} [[kinded_types]] : [[k1]] [[~>]] [[k2]] }}
by
@@ -611,7 +611,7 @@ G |-app </ (ti : ki) // i /> : k2[z_k1 |-> t] ~> k'
G |-app (t : k1), </ (ti : ki) // i /> : (forall z_k1. k2) ~> k'
defn no_conflict ( C , </ sj // j /> , ind1 , ind2 ) :: :: check_no_conflict :: 'NoConflict_'
- {{ com \parbox{5in}{Branched axiom conflict checking, \coderef{types/OptCoercion.lhs}{checkAxInstCo} \\ and \coderef{types/FamInstEnv.lhs}{compatibleBranches} } }}
+ {{ com \parbox{5in}{Branched axiom conflict checking, \coderef{types/OptCoercion.hs}{checkAxInstCo} \\ and \coderef{types/FamInstEnv.hs}{compatibleBranches} } }}
by
------------------------------------------------ :: NoBranch