From 8851db1a921e5438844284dc4c1875432839a732 Mon Sep 17 00:00:00 2001 From: Brian McKeon Date: Wed, 28 Feb 2024 09:04:48 -0500 Subject: [PATCH] Prepare 0.3.11.1 release. Minor code cleanup. Updated changelog. --- CHANGELOG.md | 3 ++- bytesmith.cabal | 2 +- sample/TakeLetter.hs | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39b287a..a42e375 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ # Revision history for bytesmith -## 0.3.11.1 -- 2024-02-13 +## 0.3.11.1 -- 2024-02-28 * Update package metadata. +* Remove dependency on `run-st` library. ## 0.3.11.0 -- 2024-01-05 diff --git a/bytesmith.cabal b/bytesmith.cabal index 1133c90..e07f32b 100644 --- a/bytesmith.cabal +++ b/bytesmith.cabal @@ -1,4 +1,4 @@ -cabal-version: 2.2 +cabal-version: 3.0 name: bytesmith version: 0.3.11.1 synopsis: Nonresumable byte parser diff --git a/sample/TakeLetter.hs b/sample/TakeLetter.hs index e057e30..190f28b 100644 --- a/sample/TakeLetter.hs +++ b/sample/TakeLetter.hs @@ -1,4 +1,4 @@ -{-# language MagicHash #-} +{-# LANGUAGE MagicHash #-} -- Build with: -- ghc -fforce-recomp -O2 -ddump-simpl -dsuppress-all -ddump-to-file sample/TakeLetter.hs @@ -8,10 +8,10 @@ module TakeLetter ) where import Data.Bytes.Parser (Parser) -import Data.Text.Short (ShortText) import Data.Bytes.Parser.Ascii (takeShortWhile) +import Data.Text.Short (ShortText) import GHC.Exts takeLetter :: Parser e s ShortText -{-# noinline takeLetter #-} +{-# NOINLINE takeLetter #-} takeLetter = takeShortWhile (== 'A')