Skip to content

Commit 53a3e10

Browse files
Prepare 0.3.11.1 release.
Minor code cleanup. Updated changelog.
1 parent cbe865b commit 53a3e10

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Revision history for bytesmith
22

3-
## 0.3.11.1 -- 2024-02-13
3+
## 0.3.11.1 -- 2024-02-28
44

55
* Update package metadata.
6+
* Remove dependency on `run-st` library.
67

78
## 0.3.11.0 -- 2024-01-05
89

bytesmith.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cabal-version: 2.2
1+
cabal-version: 3.0
22
name: bytesmith
33
version: 0.3.11.1
44
synopsis: Nonresumable byte parser

sample/TakeLetter.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
{-# language MagicHash #-}
1+
{-# LANGUAGE MagicHash #-}
22

33
-- Build with:
4+
-- cabal build --write-ghc-environment-files=always
45
-- ghc -fforce-recomp -O2 -ddump-simpl -dsuppress-all -ddump-to-file sample/TakeLetter.hs
56
-- to examine GHC optimizations.
67
module TakeLetter
78
( takeLetter
89
) where
910

1011
import Data.Bytes.Parser (Parser)
11-
import Data.Text.Short (ShortText)
1212
import Data.Bytes.Parser.Ascii (takeShortWhile)
13+
import Data.Text.Short (ShortText)
1314
import GHC.Exts
1415

1516
takeLetter :: Parser e s ShortText
16-
{-# noinline takeLetter #-}
17+
{-# NOINLINE takeLetter #-}
1718
takeLetter = takeShortWhile (== 'A')

0 commit comments

Comments
 (0)