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: Upstream haskell-ts-mode? Date: Mon, 16 Sep 2024 18:43:06 +1000 Message-ID: <874j6gxa3p.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="33324"; 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-0008WT-Al 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 1sq9Z7-00079J-Ct; Mon, 16 Sep 2024 07:06:45 -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 1sq7KE-0006qr-9r for emacs-devel@gnu.org; Mon, 16 Sep 2024 04:43:14 -0400 Original-Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sq7KC-0003rF-NZ for emacs-devel@gnu.org; Mon, 16 Sep 2024 04:43:14 -0400 Original-Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-7191fb54147so2955407b3a.2 for ; Mon, 16 Sep 2024 01:43:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726476191; x=1727080991; 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=mCi2YsAy06X7Ru64UGsjBv1M5bxbxzC1EHhSllMveqo6q2j59rfLeD4ZdUloNs6fFc R0+UVq0negjrQMgzkObny+Jy/lVAU/rl46ZcSSTwu4Uh/KujU7f4yI2+diBcf4Sdd5oi thirN1IpeJ3oI7nrgUYVwsX0yZ3DTiQbWbPpgcyhIXPzBhc4IRID5adLiSHZ3HGOhx/0 lvprun8eMZMQxyeU616HFDe8g/dmuyKJBat4+hhgOA7YNNXJElLuPs78lH51eeEDcpCm MlQWIXV34luiu3imhFVjwb2tPp0D/BK1DGvzhkllYO0hH+TijPUqBCiUj+oNbuK/chII XFmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726476191; x=1727080991; 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=vPAP5XbeboU2oTGVSLCzf76fw0PjhdSSHPhRtfQ4rg1BNEFiMskGjP6OLSRvhMbdvR VU5QbgEgg/ZBmKi3KBSju52GY5wZ7h765vvIQtBZjBY+EzjypiB7L+GxY76dLGoCCsuB 3Zw+wEVDHCyMColkQGRybJY079fT5F/YGp/M1aN/jGW/gNF7IkiQj8G++AJEEnbiZzUs ZLLbCYQZhgSkD8GprcshyS02/xEvye0r6Myn6cQgeppgcXHIbpLroRv4BshIPuM2Wi9v /H6BJd1QYt0X9CyppUIquGOJwD690tiI7mZxmO8d9lxLhkN8Nvovu0BvmLDSMWbv/Bqs F3NA== X-Gm-Message-State: AOJu0YxzIhl40t9lsx7ouqfYAAkXkfl0LnTY+8Qz1k8GNfkCitjBhtNM /nL6McaZIU74cqb3vkF3HWNM72k1MgCT2lSbtrGBz46ViAdT3ir6Ql25Mg== X-Google-Smtp-Source: AGHT+IH8dK42XJkGnLdY4yCNn3WjV5AxlXciZcv9E7knWaC8/dRrbB5RWb5bTKhR4niJEmzPK/sIBQ== X-Received: by 2002:a05:6a00:3e29:b0:70d:2b95:d9c0 with SMTP id d2e1a72fcca58-71926090ecdmr22814119b3a.14.1726476190548; Mon, 16 Sep 2024 01:43:10 -0700 (PDT) Original-Received: from pebl ([2001:8003:7816:8300:cafe:9299:26d:ce66]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944b7e083sm3408508b3a.140.2024.09.16.01.43.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2024 01:43:09 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=pranshusharma366@gmail.com; helo=mail-pf1-x433.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:43 -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:323656 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.