From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pranshu sharma Newsgroups: gmane.emacs.devel Subject: Add haskell-ts-mode to master? Date: Mon, 16 Sep 2024 16:57:09 +1000 Message-ID: <87msk8w0fu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33422"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 16 13:07:31 2024 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 1sq9Zr-0008Wx-DW for ged-emacs-devel@m.gmane-mx.org; Mon, 16 Sep 2024 13:07:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sq9Z6-000761-G0; Mon, 16 Sep 2024 07:06:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sq5fg-0006Db-Q5 for emacs-devel@gnu.org; Mon, 16 Sep 2024 02:57:16 -0400 Original-Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sq5ff-00081p-AH for emacs-devel@gnu.org; Mon, 16 Sep 2024 02:57:16 -0400 Original-Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2d87f34a650so2741914a91.1 for ; Sun, 15 Sep 2024 23:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726469833; x=1727074633; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=AAU2TrpFNA7yB8k7g2d5r/BzULZwaGtdB3u/HTWBqzA=; b=U2bZOAZV0+u8swqOy8vy2S8nx2kgdQV3Z+EzYaaq8pM5KZ0CKAiuo689TAPw9FmCOu mjXXaRK/1/gHHzyGIFPrdKg9kg7xL61yX0bAlZLEMJmlKOsVxvCNcDqxzpl5LGmVijW+ f1zNuGI+oLU/ABEHfWMZHeNM0aqgRwKdD8oQnpKEaiJeo5ZCGqyvLIPW19Ji2OJlYnvl IaebhB0Ffa8goknBQTw8oyIFOnGlZM8HtTyWLTEW18eF/cjy3rEb7fVdv6QYCEWENNsM AYOf3N7ZDKwbGEM8YFU+t1Dft+eUtkoyMv4W3N5NWxS6OsHzmSa7bhi+Rk7a4GaheDsR J9eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726469833; x=1727074633; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AAU2TrpFNA7yB8k7g2d5r/BzULZwaGtdB3u/HTWBqzA=; b=vBJIHrd/gG2upC3HoQXRai4YCoAiQUpirwWzLN3gdWIS6a0Ay6fw/A5J+TL5Vgh4Bn 6Ydyd09txqMX2aPekCX2gTMyNC0ERe5Ofz8bnWRJwsdnuK0VmyBlmbwM+g3Aobfyl2Oi RFb71Z6M8GzQ+40WBY3i6KrSeLJa5eMr0TyVGxQ3zCOf7syeqpwBfIYkSe7e5t/MuL7J fYC8453H3qu2rkYdhcFEyBA+P2O2lpaMtPjVQvNBI1U4I27DaGYMPPnP3K3EJVmrOSYH fOMzhNDhsadMsfs1IBvhIKGI8DwmUecCms8AXReqf7xs87uE857bZ6SlOJjTFRyxHgqC 11RA== X-Gm-Message-State: AOJu0YzY3tOm8yi7t6P3TxWUW8bE1KwayW4pc8tFxI/z2MFDub1T2Rgu KNkghgIV9HJpgnvHbQJE0ckBUw0xDg6BcKlL/RtKwXFXRlVRFD7uCqXRFg== X-Google-Smtp-Source: AGHT+IHi1lHG7Ykwim0Sl2hGVcmK51agDEFcMO/iMzlPeDxciPZMqLulpWWRcQR6+LXzPLxl3795Pg== X-Received: by 2002:a17:90a:640a:b0:2d8:85fc:464c with SMTP id 98e67ed59e1d1-2db671ae57cmr35268094a91.11.1726469833350; Sun, 15 Sep 2024 23:57:13 -0700 (PDT) Original-Received: from pebl ([2001:8003:7816:8300:cafe:9299:26d:ce66]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dbcfdbc56dsm4352694a91.49.2024.09.15.23.57.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Sep 2024 23:57:13 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=pranshusharma366@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 16 Sep 2024 07:06:42 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323657 Archived-At: With tree-sitter, I was able to make a major mode that provided indentation, font lock and navigation. Over the last month, I've been working on it and I can finally say it is fully ready. I tested the indent on large haskell programs, such as darcs and ghc, and it was good, and it did not change the output (since indent matters in haskell execution). I'm willing to upstream this to master, as it would be good if emacs had an inbuilt major mode for haskell.