# Weird thing I found in elm/parser

**URL:** <https://discourse.elm-lang.org/t/weird-thing-i-found-in-elm-parser/6130>\
**Category:** Learn\
**Created:** [August 4, 2020, 9:38pm UTC](https://discourse.elm-lang.org/t/weird-thing-i-found-in-elm-parser/6130 "2020-08-04T21:38:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DullBananas](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dullbananas/32/3709_2.png) [@DullBananas](https://discourse.elm-lang.org/u/DullBananas)\
**Post date:** [August 4, 2020, 9:38pm UTC](https://discourse.elm-lang.org/t/weird-thing-i-found-in-elm-parser/6130/1 "2020-08-04T21:38:17Z")

</div>

I found [this function](https://github.com/elm/parser/blob/master/src/Parser/Advanced.elm#L1376) in the source code of elm/parser:

```elm
isChar : Char -> Bool
isChar char =
  True

```

Why does this function exist?

---

<div class="post-metadata">

**Author:** ![harrysarson](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/harrysarson/32/1305_2.png) [@harrysarson](https://discourse.elm-lang.org/u/harrysarson)\
**Post date:** [August 4, 2020, 9:46pm UTC](https://discourse.elm-lang.org/t/weird-thing-i-found-in-elm-parser/6130/2 "2020-08-04T21:46:02Z")

</div>

I have been writing `P.chompIf (\_ -> True)` quite a lot recently as it happens. Guaranteed chomping is certainly useful

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [August 14, 2020, 9:46pm UTC](https://discourse.elm-lang.org/t/weird-thing-i-found-in-elm-parser/6130/3 "2020-08-14T21:46:04Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
