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

Generalise Input Type #52

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix(Internal.Input): simplify defn of InputStream String instance usi…
…ng Data.List.null
  • Loading branch information
david-davies committed Nov 13, 2024
commit f5b3d50aa41f5baf8e2149623c81cae5911f674d
2 changes: 1 addition & 1 deletion src/Text/Gigaparsec/Internal/Input.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ unconsInput (Input x) = case unconsInputStream x of

instance InputStream String where
{-# INLINE isEmptyInputStream #-}
isEmptyInputStream = ("" ==)
isEmptyInputStream = null

{-# INLINE readInputStream #-}
readInputStream = readFile
Expand Down