From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 2D8077F0F9 for ; Tue, 24 Nov 2015 20:03:08 +0100 (CET) IronPort-PHdr: 9a23:ytCUwBeiEDZX6ylw9YMsBnIOlGMj4u6mDksu8pMizoh2WeGdxc64Yx7h7PlgxGXEQZ/co6odzbGG7ua/Bydcud6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDvvcKNKFkQzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IAu3GePEzRLlcSTAnKHwd5cvxtBCFQxHcyGEbVzAynx0APAjE8ByyCpP8tQP+rvUnhW+cMNGgHuN8Yiir86o+EEygsywALTNsqGw= Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=leo@lpw25.net; spf=None smtp.mailfrom=leo@lpw25.net; spf=None smtp.helo=postmaster@out2-smtp.messagingengine.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of leo@lpw25.net) identity=pra; client-ip=66.111.4.26; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="leo@lpw25.net"; x-sender="leo@lpw25.net"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of leo@lpw25.net) identity=mailfrom; client-ip=66.111.4.26; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="leo@lpw25.net"; x-sender="leo@lpw25.net"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@out2-smtp.messagingengine.com) identity=helo; client-ip=66.111.4.26; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="leo@lpw25.net"; x-sender="postmaster@out2-smtp.messagingengine.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0B9AAD+s1RWnBoEb0JehA5vwC8XAQmFbgKBQzsRAQEBAQEBAQEQAQEBAQEGDQkJIS6CLYF+CgEBBCMdOg8LAwEWAiYCAiwriEcNrRpxhGmLPQEBAQcBAQEBAQEXBoEBilGEWU6CFAwuExyBFY1cPYg8hSSKMZonESaCU4F7IDQBhSoBAQE X-IPAS-Result: A0B9AAD+s1RWnBoEb0JehA5vwC8XAQmFbgKBQzsRAQEBAQEBAQEQAQEBAQEGDQkJIS6CLYF+CgEBBCMdOg8LAwEWAiYCAiwriEcNrRpxhGmLPQEBAQcBAQEBAQEXBoEBilGEWU6CFAwuExyBFY1cPYg8hSSKMZonESaCU4F7IDQBhSoBAQE X-IronPort-AV: E=Sophos;i="5.20,339,1444687200"; d="scan'208,217";a="154996550" Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Nov 2015 20:02:45 +0100 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id EEDEE20279 for ; Tue, 24 Nov 2015 14:02:43 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute6.internal (MEProxy); Tue, 24 Nov 2015 14:02:43 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=lpw25.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=e42AFhPIjRrnFe/mqoHOfkSyetg=; b=qosfBl 5u6WKdq+w+/ZKXoC/UAYbee2K6gpZAjm2jq7suNqP+72TExkgZzh7bb6cZhnWnJ7 sWPr7bpOJpZN2xEdo57L+vIolDP2b1dq3xSwEwfg3REGbCzILWx7HZMiJlpxG5H+ XaBBANYtWKJSYYXbT8Mu5fF5hQrB3BqWDGAwo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=e42AFhPIjRrnFe/ mqoHOfkSyetg=; b=ViWePSe2zvhMMVv7enR5B/Ku93wOHphaM/2BePwtK1HNS2j TaceJrraq2XcLtfBqvaO5/jYxsmWgOQAawpL1J6VinzBUe7lMItB7ePW10CFs0fs 2wrdZ8MUHo8ctChasQISNe1Izho3eN7FL4ZrqVDzum8xP2T57RNfWdb/pL0s= Received: by web3.nyi.internal (Postfix, from userid 99) id C68A71030B7; Tue, 24 Nov 2015 14:02:43 -0500 (EST) Message-Id: <1448391763.752935.449046777.5A58992B@webmail.messagingengine.com> X-Sasl-Enc: ohUeesNlPT7XZ6o1jQMFCTIM+jpmnvIa47FU52qAa4+O 1448391763 From: Leo White To: caml-list@inria.fr MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary="_----------=_14483917637529351"; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-7bf96122 In-Reply-To: References: Date: Tue, 24 Nov 2015 14:02:43 -0500 Subject: Re: [Caml-list] how to apply an attribute on ppx output This is a multi-part message in MIME format. --_----------=_14483917637529351 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="ISO-8859-1" > $ cat foo.ml module T =3D struct=A0 [@@warning "-32"]=A0 type t =3D {a:in= t} > [@@deriving fields] end include T > > However I get a syntax error, even though this follows the example of > the manual in section 7.221[1]. Is this a bug in the manual? I think that's a typo in the manual: it should be [@@@warning "-32"] (with *three* at symbols). Regards, Leo Links: 1. http://caml.inria.fr/pub/docs/manual-ocaml/extn.html#sec242 --_----------=_14483917637529351 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset="ISO-8859-1"
$ cat foo.ml
module T = struct
  [@@warning "-32"]
  type t = {a:int} [@@deriving fields]
end
include T
 
However I get a syntax error, even though this follows the example of the manual in section 7.221. Is this a bug in the manual?
 
I think that's a typo in the manual: it should be [@@@warning "-32"] (with *three* at symbols).
 
Regards,
 
Leo
--_----------=_14483917637529351--