Skip to content

Commit

Permalink
Prepare 0.3.11.1 release.
Browse files Browse the repository at this point in the history
Minor code cleanup.
Updated changelog.
  • Loading branch information
brianjosephmckeon committed Feb 28, 2024
1 parent cbe865b commit 139da01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion bytesmith.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: 2.2
cabal-version: 3.0
name: bytesmith
version: 0.3.11.1
synopsis: Nonresumable byte parser
Expand Down
7 changes: 4 additions & 3 deletions sample/TakeLetter.hs
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{-# language MagicHash #-}
{-# LANGUAGE MagicHash #-}

-- Build with:
-- cabal build --write-ghc-environment-files=always
-- ghc -fforce-recomp -O2 -ddump-simpl -dsuppress-all -ddump-to-file sample/TakeLetter.hs
-- to examine GHC optimizations.
module TakeLetter
( 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')

0 comments on commit 139da01

Please sign in to comment.