Skip to content
Merged
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
4 changes: 2 additions & 2 deletions specs/018-pattern-path-semantics/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
```haskell
import Gram.Parse (parseGram)
import Gram.Validate (validate)
import Text.Megaparsec (errorBundlePretty)
import Text.Megaparsec (parse, errorBundlePretty)

main :: IO ()
main = do
let source = "[a], [b | a]"
case parseGram source of
case parse parseGram "" source of
Left err -> putStrLn $ "Parse error: " ++ errorBundlePretty err
Right cst -> case validate cst of
Left errs -> mapM_ print errs
Expand Down