diff options
author | mniip <mniip@mniip.com> | 2020-04-22 22:40:58 +0300 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-04-23 18:33:21 -0400 |
commit | 2c23e2e37d6c937a425c53da643aec90bda01ef6 (patch) | |
tree | fafda34b379a6238e712085d38386a1762238297 /compiler/GHC/Builtin/PrimOps.hs | |
parent | 72da0c29cd7c336cdce3b36d1dd9e8b65a53afbd (diff) | |
download | haskell-2c23e2e37d6c937a425c53da643aec90bda01ef6.tar.gz |
Include docs for non-primop entries in primops.txt as well
Diffstat (limited to 'compiler/GHC/Builtin/PrimOps.hs')
-rw-r--r-- | compiler/GHC/Builtin/PrimOps.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/GHC/Builtin/PrimOps.hs b/compiler/GHC/Builtin/PrimOps.hs index b3861c83aa..75622f7399 100644 --- a/compiler/GHC/Builtin/PrimOps.hs +++ b/compiler/GHC/Builtin/PrimOps.hs @@ -167,9 +167,15 @@ primOpFixity :: PrimOp -> Maybe Fixity \subsubsection{Docs} * * ************************************************************************ + +@primOpDocs@ contains the documentation from @primops.txt@ as a list of +pairs (name, docs). We use stringy names here because wired-in names are +not available yet, and not all of them are a @PrimOp@ (they could be +tycons or pseudoops for example) + -} -primOpDocs :: PrimOp -> Maybe String +primOpDocs :: [(String, String)] #include "primop-docs.hs-incl" {- |