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')