Instead of doing this and hardcoding the string
expect parsePartial (chompUntil '\n') [] == Err (ParsingFailure "character not found")
Maybe we could permit this? Or is there a better way?
expect parsePartial (chompUntil '\n') [] == Err (ParsingFailure _)
FYI I got this to work, but it's not really clear what it does I think.
expect when parsePartial (chompUntil '\n') [] is
Ok _ -> Bool.false
Err (ParsingFailure _) -> Bool.true
I guess you really want something like this:
expect parsePartial (chompUntil '\n') [] |> isParsingFailure
?
Where you can somehow check the tag of a union in a lightweight manner that is less verbose?
Though I guess it is nested, so that is more complex
I think your right, a helper will make more sense. I don't think what I suggested even makes sense looking at it closer...
Last updated: Jun 16 2026 at 16:19 UTC