Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 32a581f

Browse files
author
Patrick Thomson
committed
More robust example parsing.
1 parent 4853d97 commit 32a581f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

script/clone-example-repos

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
set -e
1414
cd $(dirname "$0")/..
1515

16-
mkdir -p test/examplerepos
17-
git clone --single-branch --recurse-submodules https://github.com/tree-sitter/haskell-tree-sitter.git tmp/haskell-tree-sitter
16+
mkdir -p test/examplerepos || true
17+
git clone --single-branch --recurse-submodules https://github.com/tree-sitter/haskell-tree-sitter.git tmp/haskell-tree-sitter || true
1818

1919
dir="tmp/haskell-tree-sitter/languages"
2020

test/Examples.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ parseFilePath :: (Member (Error SomeException) sig, Member Distribute sig, Membe
105105
parseFilePath path = readBlob (fileForPath path) >>= parseTermBuilder @[] TermShow . pure >>= const (pure True)
106106

107107
languagesDir :: FilePath
108-
languagesDir = "vendor/haskell-tree-sitter/languages"
108+
languagesDir = "tmp/haskell-tree-sitter/languages"

0 commit comments

Comments
 (0)