From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Philippe Vaucher Newsgroups: gmane.emacs.devel Subject: Re: Imports / inclusion of s.el into Emacs Date: Sat, 2 May 2020 23:17:53 +0200 Message-ID: References: <5f91c6e5-b4af-4478-b221-4ca37f0fb74c@default> <99160458-6ac3-48a1-bd28-2d8006ba86f9@default> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000044b2ae05a4b0d6fc" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41706"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Richard Stallman , Emacs developers To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 23:19:24 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUzXf-000AkF-Ri for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 23:19:23 +0200 Original-Received: from localhost ([::1]:53454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUzXe-0004U9-T8 for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 17:19:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUzWl-0003YI-Km for emacs-devel@gnu.org; Sat, 02 May 2020 17:18:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUzWl-0000aK-0l for emacs-devel@gnu.org; Sat, 02 May 2020 17:18:27 -0400 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:45448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUzWg-0000Wk-B7; Sat, 02 May 2020 17:18:22 -0400 Original-Received: by mail-lj1-x235.google.com with SMTP id h4so5865247ljg.12; Sat, 02 May 2020 14:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mk5VeLuNTQtbKRKzCxyEhYR0bAMcEdkOLonEn6517/s=; b=FSPjI1kCw28Hvd2K3zqeseq5wXPgmBvnDIe9s9NEoIu6HEiYQXczoyL/YOZwg44zLW l2qfMODro0biRiaJo5UnVLHlYdHzwImjdFHh1eL1bwkXHYKEMRPTLYF+NpBUPYGcg/DA C4VyqrkVhCLHF0Lmhsr92gHBSKA9F6zTBp2Vdurq/hBrQ+vFIboOjY8G3840NMi1KAHL IyMFvRpksN0mX/1qRRgB8ADqwgkT4m6A8EYW/Vx3PTQsPBeEVSPyl2kSlxVj0Zmwhwee ZMVXGZVfQwwmu9mHReswkHKVl1S+l3BZNeGD/1XTeiB9UfQULQWaBxVQySUzRpwKN6ak 4A/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mk5VeLuNTQtbKRKzCxyEhYR0bAMcEdkOLonEn6517/s=; b=irqodxIlwnLkAXD7fglrV97YcblagOdtcc+qwiB+0PWa8tODnMO3FXkk6407YIM7J5 3RBC/zkL0BFZkqHBmE6PzGjNyVPeBbujsvPHBCiDgAZREvwfbhojWkIXtTiLViReas9W tDn8mDUIEWpA+8yqCtyC6uLpQGKCifmEp6OnhyLxEov5h1mYeprQ3Si3sPM8gczspEAH NswMA69DFnEMQdCvoHqdk92TmWih7Y+0l3dIXR4ftSZeJOVUdnX4q5garijcOp6c7CKr HbhUbrTNjU/SK5+0H8AvMdATNDZ2084T/tE0ANZKvl6gTugupvg3cXPKdiayeIUZjUh1 Zwow== X-Gm-Message-State: AGi0PuZMja//XJkbQB35Xy3W778TWv+mNQYEYVIDMiJRfsSXowbL2K7s WxD2xeP1EIGtlY1dSkuvQLKiMoSRO/fOVOr2++o= X-Google-Smtp-Source: APiQypK3XHejvMcUmcllmok9A+HSDJONz5FV2jDXEApGfjov+0INng9oeJgxAqKJkSLqzfGwCcgkx2t2Xr4DGmzj9Gs= X-Received: by 2002:a2e:7e04:: with SMTP id z4mr6161759ljc.50.1588454299578; Sat, 02 May 2020 14:18:19 -0700 (PDT) In-Reply-To: <99160458-6ac3-48a1-bd28-2d8006ba86f9@default> Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=philippe.vaucher@gmail.com; helo=mail-lj1-x235.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248581 Archived-At: --00000000000044b2ae05a4b0d6fc Content-Type: text/plain; charset="UTF-8" On Sat, May 2, 2020 at 10:53 PM Drew Adams wrote: > > [Please use plain-text, not HTML.] > > >> In Haskell, do you name every function with a > >> prefix that advertises the type of its return > >> value or one of its main arguments? No, of course > >> not. How do you find functions that return or use > >> a value of a given type? You check signatures > >> or doc. > > > > Except if I'm missing somethign Haskell also groups related functions together: https://urldefense.com/v3/__https://hackage.haskell.org/package/strings-1.1/docs/Data-Strings.html__;!!GqivPVa7Brio!LCpoSrliut7R6447MW0bxoZVqjxyDCCan6SeRxySTEZFcwKTa4KnqazRkAcDMCGd$ > > According to what you've said before, instead of > those functions being named `text', `lazyText', > `bytes', `lazyBytes', `charToByte', and > `byteToChar' they should be named `string-text', > `string-lazyText', `string-bytes', > `string-lazyBytes', `string-charToByte', > and `string-byteToChar'. No, they all are in the namespace Data.Strings I'm not an haskell expert so I might be wrong. --00000000000044b2ae05a4b0d6fc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, May 2, 2020 at 10:53 PM Drew Adams <drew.adams@oracle.com> wrote:<= br>>
> [Please use plain-text, not HTML.]
>
> >>= In Haskell, do you name every function with a
> >> prefix that= advertises the type of its return
> >> value or one of its mai= n arguments?=C2=A0 No, of course
> >> not.=C2=A0 How do you fin= d functions that return or use
> >> a value of a given type?=C2= =A0 You check signatures
> >> or doc.
> >
> >= Except if I'm missing somethign Haskell also groups related functions = together: https://urldefense.co= m/v3/__https://hackage.haskell.org/package/strings-1.1/docs/Data-Strings.ht= ml__;!!GqivPVa7Brio!LCpoSrliut7R6447MW0bxoZVqjxyDCCan6SeRxySTEZFcwKTa4Knqaz= RkAcDMCGd$
>
> According to what you've said before, in= stead of
> those functions being named `text', `lazyText',> `bytes', `lazyBytes', `charToByte', and
> `byteToCh= ar' they should be named `string-text',
> `string-lazyText= 9;, `string-bytes',
> `string-lazyBytes', `string-charToByte&= #39;,
> and `string-byteToChar'.

No, they all = are in the namespace=C2=A0Data.Strings

I'm not an haskell expert so I might be wrong.
--00000000000044b2ae05a4b0d6fc--