[commit: ghc] master: Fixed a typo in template-haskell documentation (028645c)
git at git.haskell.org
git at git.haskell.org
Tue Aug 22 15:22:23 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/028645ce67003f954e71c5a624c158c184506639/ghc
>---------------------------------------------------------------
commit 028645ce67003f954e71c5a624c158c184506639
Author: Benjamin Hodgson <bhodgson at stackoverflow.com>
Date: Tue Aug 22 13:11:43 2017 +0100
Fixed a typo in template-haskell documentation
The documentation for `Type`'s `ForallT` constructor had a typo (pun not
intended). `ctxt` is separated from `type` in the surface syntax by a fat
arrow (`=>`), not a thin arrow (`->`).
>---------------------------------------------------------------
028645ce67003f954e71c5a624c158c184506639
libraries/template-haskell/Language/Haskell/TH/Syntax.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
index b8e1601..aacc8c3 100644
--- a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
+++ b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
@@ -1905,7 +1905,7 @@ data PatSynArgs
| RecordPatSyn [Name] -- ^ @pattern P { {x,y,z} } = p@
deriving( Show, Eq, Ord, Data, Generic )
-data Type = ForallT [TyVarBndr] Cxt Type -- ^ @forall \<vars\>. \<ctxt\> -> \<type\>@
+data Type = ForallT [TyVarBndr] Cxt Type -- ^ @forall \<vars\>. \<ctxt\> => \<type\>@
| AppT Type Type -- ^ @T a b@
| SigT Type Kind -- ^ @t :: k@
| VarT Name -- ^ @a@
More information about the ghc-commits
mailing list