8000 try breaks error messages · Issue #28 · ekmett/trifecta · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
try breaks error messages #28
Closed
Closed
@UnkindPartition

Description

@UnkindPartition

This works as expected:

Prelude Text.Trifecta> parseTest (string "foo" >> string "bar") "foo bar"
(interactive):1:4: error: expected: "bar"
foo bar<EOF> 
   ^         

But if I add try:

Prelude Text.Trifecta> parseTest (try $ string "foo" >> string "bar") "foo bar"
(interactive):1:1: error: unspecified error
foo bar<EOF> 
^            

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0