forked from pool/happy
Compare commits
94 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| ef8365dfec | |||
| 74d7057059 | |||
| eb27838ed5 | |||
| 3ed5e84794 | |||
| 903daf5893 | |||
| 59b157f0c1 | |||
| 142da7b055 | |||
| 8dcbe8be9a | |||
| 35e4b91b17 | |||
| 966093e09b | |||
| 7f6364791f | |||
| ba4f0708bc | |||
| d32964e583 | |||
| 787f1f1e8f | |||
| 398ba19981 | |||
| 91ce2bb022 | |||
| 565210aeab | |||
| ad7679d2c3 | |||
| 3d3ad643dc | |||
| 52f8f792e5 | |||
| 817ac67364 | |||
| fb3d2a0aab | |||
| 4e333aed90 | |||
| ba55985a6f | |||
| ec187a439d | |||
| c21ad386a3 | |||
| 8540bbb275 | |||
| d19dba1fff | |||
| 959491a85f | |||
| 85cee146b5 | |||
| a25d2995f8 | |||
| 1a85a32652 | |||
| 79021d73c2 | |||
| 1565adcb9c | |||
| dcc33c6b7b | |||
| d8e885512c | |||
| 9bb6404205 | |||
| 43e3ae04d3 | |||
| e0930d9307 | |||
| 4f0913323a | |||
| 6d45331869 | |||
| ccde88205d | |||
| 947c4c3beb | |||
| dc5085ffd8 | |||
| e26af9227d | |||
| fa14235bbf | |||
| 48d67af50a | |||
| 634f8b38a8 | |||
| 8d85c43245 | |||
| 3a903051dc | |||
| ffba8513d0 | |||
| b0ff9aeb52 | |||
| ea8e81aab9 | |||
| d93b1ef6ee | |||
| f288b580ae | |||
| c002251ee6 | |||
| 1dfda5a706 | |||
| 9fb63eb461 | |||
| b0418bcab1 | |||
| e31c9e2a0a | |||
| e4fa8d08de | |||
| 03b968ec54 | |||
| 793edcc5b8 | |||
| c1597f01fa | |||
| f68ce69c0d | |||
| d50cffff6b | |||
| 9f44b1d739 | |||
| da02598f6c | |||
| 9a0b749d97 | |||
| 22dbafad35 | |||
| 1c1a84f6d6 | |||
|
|
574d5e86d5 | ||
| 06b7134a49 | |||
|
|
c066c4150a | ||
|
|
440c8caba4 | ||
| 6676a0b71c | |||
|
|
9ee81cb149 | ||
|
|
519f1a0969 | ||
| bebe94d853 | |||
|
|
129648f920 | ||
|
|
46ebac324b | ||
|
|
ac5076026f | ||
|
|
33cc09c12e | ||
|
|
9b0fe742a8 | ||
|
|
3f4639a6ea | ||
|
|
aa0f63a2aa | ||
|
|
a144903ba9 | ||
|
|
2cfc6e555c | ||
|
|
10e8ff9499 | ||
|
|
fa5f289dd1 | ||
|
|
84afcf0898 | ||
|
|
5e5ddc1a3d | ||
|
|
eeb2c9f7ed | ||
|
|
ec56b2fdf7 |
3
happy-1.20.1.1.tar.gz
Normal file
3
happy-1.20.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8b4e7dc5a6c5fd666f8f7163232931ab28746d0d17da8fa1cbd68be9e878881b
|
||||
size 183409
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9b473961010cb5673510f4133d914b9d5ad667b16aafe4a5555d9962dbf05b19
|
||||
size 61435
|
||||
122
happy.changes
122
happy.changes
@@ -1,125 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 17 09:15:57 UTC 2025 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update happy to version 2.1.6.
|
||||
## 2.1.6
|
||||
|
||||
* No longer emit `{-# LANGUAGE PartialTypeSignatures #-}` twice
|
||||
([#339](https://github.com/haskell/happy/issues/339)).
|
||||
|
||||
* No longer emit `import Data.Function` twice
|
||||
([#341](https://github.com/haskell/happy/issues/341)).
|
||||
|
||||
* Tested with GHC 8.0 - 9.12.2.
|
||||
The Haskell code generated by Happy is for GHC 8.0 and up.
|
||||
|
||||
## 2.1.5
|
||||
|
||||
Add `Data.Tuple` to `Happy_Prelude` in order to fix the `--debug` build (#330).
|
||||
|
||||
## 2.1.4
|
||||
|
||||
Move `Paths_happy_lib` into `tabular` to prevent a Cabal bug concerning
|
||||
--libsubdir (#328). It is likely that this release fixes
|
||||
`cabal v1-install happy` as well, which was broken since happy-2.0 (#315).
|
||||
|
||||
## 2.1.3
|
||||
|
||||
Auto-resolve shift/reduce conflicts involving the catch token.
|
||||
This was to support on going work in GHC to utilise the catch token.
|
||||
|
||||
## 2.1.2
|
||||
|
||||
Fix a breaking change (#325) introduced by the previous fix for #131.
|
||||
Prelude is no longer used by Happy.
|
||||
|
||||
## 2.1.1
|
||||
|
||||
This release fixes two breaking changes:
|
||||
|
||||
* Properly qualify all uses of Prelude functions, fixing #131
|
||||
* Bring back the old `%errorhandlertype` directive, the use of which is
|
||||
discouraged in favour of the "Reporting expected tokens" mechanism
|
||||
in Happy 2.1, accesible via `%error.expected`.
|
||||
|
||||
## 2.1
|
||||
|
||||
* Added `--numeric-version` CLI flag.
|
||||
* Documented and implemented the new feature "Resumptive parsing with ``catch``"
|
||||
* Documented (and reimplemented) the "Reporting expected tokens" feature
|
||||
(which turned to cause a breaking change in this release: #320)
|
||||
|
||||
## 2.0.2
|
||||
|
||||
The 2.0.1 release in turn exposed two more regressions:
|
||||
|
||||
* Generated code uses PatternGuards without declaring it (#309)
|
||||
* Use of `happy-lib:*` syntax to depend on private library components triggered
|
||||
a bug in Cabal versions 3.0 and 3.2 (#311)
|
||||
|
||||
This release fixes both.
|
||||
|
||||
## 2.0.1
|
||||
|
||||
The 2.0 release changed the indentation character from tabs to two spaces, triggering an
|
||||
unforced breaking change in GHC (#303).
|
||||
This release provides the fix by using eight spaces for indentation.
|
||||
|
||||
## 2.0
|
||||
|
||||
There are two main breaking changes in this release:
|
||||
|
||||
1. Removed non-array, non-GHC modes, so flags `-ag` are the default now and
|
||||
become no-ops.
|
||||
2. Generated parsers now activate the language extension `-XNoStrictData` without
|
||||
which every use of a happy parser would lead to an immediate crash (#273).
|
||||
This causes us to drop support for GHC < 8.0.
|
||||
|
||||
Furthermore, the project structure was modularized and a library `happy-lib`
|
||||
containing the implmentation of the `happy` executable was extracted.
|
||||
|
||||
Quite similar to the situation with GHC vs. the GHC API, we expect that `happy`
|
||||
will continue to be a stable CLI tool with solid (if occasionally out of date)
|
||||
documentation, while the design, documentation and implementation of `happy-lib`
|
||||
is still in flux and use is only recommended to expert users.
|
||||
|
||||
Other, more minor changes:
|
||||
|
||||
* Revert the new bootstrapping system of 1.21.0 to mitigate build issues (#255, #274).
|
||||
|
||||
* Encode action table offsets in 32 bit instead of 16 bit (#93, #199, #266).
|
||||
This increases the size of generated parsers a bit (about 250KB for GHC's
|
||||
parser), but also manages to generate parsers for grammars that were
|
||||
previously running into the size limit (#199).
|
||||
|
||||
* The documentation has been converted to ReStructuredText,
|
||||
hosted at https://haskell-happy.readthedocs.io/en/latest/ (#226)
|
||||
|
||||
* A few internal refactorings to the structure of generated code.
|
||||
|
||||
## 1.21.0
|
||||
|
||||
The main focus of this release was revamping the build system and bootstrapping.
|
||||
|
||||
* The release no longer contains generated source code. Instead of simply
|
||||
requiring a pre-built bootstrap version of Happy in that event, we have a
|
||||
parser-combination-based implementation of enough of Happy to bootstrap the
|
||||
rest. (Currently, the bootstrap version is everything but attribute grammars,
|
||||
and thus sufficient for e.g. GHC, but this is subject to change.) The
|
||||
bootstrap version of Happy is then sufficient to build Happy once again with
|
||||
all features enabled.
|
||||
|
||||
Note, this means users of attribute grammars will have to modify the way
|
||||
they build happy if they were previously building from Hackage relying on the
|
||||
pre-generated sources.
|
||||
|
||||
* Rather than creating many "templates" at build time, there is a single
|
||||
combined template. Different implementations are chosen using CPP, as was
|
||||
already done within the templates before.
|
||||
|
||||
* Some imports were tightened down, which may help building with newer versions
|
||||
of `base`.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 4 08:34:54 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
|
||||
37
happy.spec
37
happy.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package happy
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,12 +18,15 @@
|
||||
|
||||
%bcond_with tests
|
||||
Name: happy
|
||||
Version: 2.1.6
|
||||
Version: 1.20.1.1
|
||||
Release: 0
|
||||
Summary: Happy is a parser generator for Haskell
|
||||
License: BSD-2-Clause
|
||||
URL: https://hackage.haskell.org/package/%{name}
|
||||
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: docbook-dtd
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-array-devel
|
||||
BuildRequires: ghc-array-prof
|
||||
@@ -31,12 +34,11 @@ BuildRequires: ghc-base-devel
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-containers-devel
|
||||
BuildRequires: ghc-containers-prof
|
||||
BuildRequires: ghc-happy-lib-devel
|
||||
BuildRequires: ghc-happy-lib-prof
|
||||
BuildRequires: ghc-mtl-devel
|
||||
BuildRequires: ghc-mtl-prof
|
||||
BuildRequires: ghc-rpm-macros
|
||||
Requires: ghc-happy-lib-templates
|
||||
BuildRequires: libxml2
|
||||
BuildRequires: libxslt
|
||||
ExcludeArch: %{ix86}
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-process-devel
|
||||
@@ -54,16 +56,39 @@ to the 'yacc' tool for C.
|
||||
%build
|
||||
%define cabal_configure_options -f-bootstrap
|
||||
%ghc_bin_build
|
||||
cd doc
|
||||
autoreconf
|
||||
%configure
|
||||
%make_build html
|
||||
|
||||
%install
|
||||
%ghc_bin_install
|
||||
# drop artifacts from autoconf that differ across builds to fix build-compare
|
||||
rm -rf doc/autom4te.cache doc/config.log doc/config.status
|
||||
|
||||
install -D --mode=444 doc/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
||||
|
||||
%check
|
||||
%cabal_test
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc ChangeLog.md README.md examples
|
||||
%doc ChangeLog.md doc examples
|
||||
%{_bindir}/%{name}
|
||||
%dir %{_datadir}/%{name}-%{version}
|
||||
%{_mandir}/man1/*
|
||||
%{_datadir}/%{name}-%{version}/GLR_Base
|
||||
%{_datadir}/%{name}-%{version}/GLR_Lib
|
||||
%{_datadir}/%{name}-%{version}/GLR_Lib-ghc
|
||||
%{_datadir}/%{name}-%{version}/GLR_Lib-ghc-debug
|
||||
%{_datadir}/%{name}-%{version}/HappyTemplate
|
||||
%{_datadir}/%{name}-%{version}/HappyTemplate-arrays
|
||||
%{_datadir}/%{name}-%{version}/HappyTemplate-arrays-coerce
|
||||
%{_datadir}/%{name}-%{version}/HappyTemplate-arrays-coerce-debug
|
||||
%{_datadir}/%{name}-%{version}/HappyTemplate-arrays-debug
|
||||
%{_datadir}/%{name}-%{version}/HappyTemplate-arrays-ghc
|
||||
%{_datadir}/%{name}-%{version}/HappyTemplate-arrays-ghc-debug
|
||||
%{_datadir}/%{name}-%{version}/HappyTemplate-coerce
|
||||
%{_datadir}/%{name}-%{version}/HappyTemplate-ghc
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user