File: fix-docsections

package info (click to toggle)
haskell-haskell-gi 0.24.4-2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 800 kB
  • sloc: haskell: 8,262; ansic: 74; makefile: 10
file content (22 lines) | stat: -rw-r--r-- 1,064 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 0b988bb20764024b06fdaa9a515cc7e92eda89c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?I=C3=B1aki=20Garc=C3=ADa=20Etxebarria?=
 <1238558+garetxe@users.noreply.github.com>
Date: Thu, 24 Sep 2020 19:00:58 +0100
Subject: [PATCH] Accept (but ignore for the moment) docsections

---
 lib/Data/GI/CodeGen/API.hs | 1 +
 1 file changed, 1 insertion(+)

Index: b/lib/Data/GI/CodeGen/API.hs
===================================================================
--- a/lib/Data/GI/CodeGen/API.hs
+++ b/lib/Data/GI/CodeGen/API.hs
@@ -198,6 +198,7 @@ parseNSElement aliases ns@GIRNamespace{.
           "class" -> parse APIObject parseObject
           "interface" -> parse APIInterface parseInterface
           "boxed" -> ns -- Unsupported
+          "docsection" -> ns -- Ignored for now, see https://github.com/haskell-gi/haskell-gi/issues/318
           n -> error . T.unpack $ "Unknown GIR element \"" <> n <> "\" when processing namespace \"" <> nsName <> "\", aborting."
     where parse :: (a -> API) -> Parser (Name, a) -> GIRNamespace
           parse wrapper parser =