packages feed

alex 3.2.7.4 → 3.3.0.0

raw patch · 5 files changed

+17/−4 lines, 5 files

Files

CHANGELOG.md view
@@ -1,3 +1,14 @@+## Changes in 3.3.0.0++ * Add an `Ord` instance to `AlexPosn` (Issue [#233](https://github.com/haskell/alex/issues/233)).+   This breaks developments that define their own (orphan) `instance Ord AlexPosn`.+   If this is the derived stock instance, the fix is to delete the orphan instance and require+   `build-tool-depends: alex:alex >= 3.3.0.0`.+ * Switch to Haskell PVP versioning with four digits.+ * Tested with GHC 7.0 - 9.6.1.++_Andreas Abel, 2023-05-25_+ ## Change in 3.2.7.4   * The user-supplied "epilogue" Haskell code is now put _last_ in the generated file.
alex.cabal view
@@ -1,6 +1,6 @@ cabal-version: >= 1.10 name: alex-version: 3.2.7.4+version: 3.3.0.0 -- don't forget updating changelog.md! license: BSD3 license-file: LICENSE
data/AlexWrappers.hs view
@@ -153,7 +153,7 @@  #if defined(ALEX_POSN) || defined(ALEX_MONAD) || defined(ALEX_POSN_BYTESTRING) || defined(ALEX_MONAD_BYTESTRING) || defined(ALEX_GSCAN) data AlexPosn = AlexPn !Int !Int !Int-        deriving (Eq,Show)+        deriving (Eq, Show, Ord)  alexStartPos :: AlexPosn alexStartPos = AlexPn 0 1 1
src/ParseMonad.hs view
@@ -64,7 +64,7 @@ -- assuming the usual eight character tab stops.  data AlexPosn = AlexPn !Int !Int !Int-        deriving (Eq,Show)+        deriving (Eq, Show, Ord)  alexStartPos :: AlexPosn alexStartPos = AlexPn 0 1 1
tests/tokens_monad_bytestring.x view
@@ -36,7 +36,9 @@ 	Int AlexPosn Int	|         Err AlexPosn            |         EOF-        deriving (Eq,Show)+        deriving (Eq,Ord,Show)+  -- Adding 'Ord' is possible since 3.3.0 (issue #233)+  -- where an 'Ord' instance for 'AlexPosn' is generated by default.  alexEOF = return EOF