Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare 0.3.11.1 release. #36

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')
Loading