Skip to content

Commit 3f3d4de

Browse files
authored
Merge pull request #428 from rbasso/binary-search-tree-make-stub-build-tests
binary-search-tree: change stub to be able to run the tests
2 parents be4af4b + 5b27274 commit 3f3d4de

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

exercises/binary-search-tree/HINTS.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ with `Eq` and `Show` instances, and implement the functions:
1212
- `singleton`
1313
- `toList`
1414

15-
You will find the type signatures already in place, but it is up to you
16-
to define the functions.
15+
You will find a dummy data declaration and type signatures already in place,
16+
but it is up to you to define the functions and create a meaningful data type,
17+
newtype or type synonym.

exercises/binary-search-tree/src/BST.hs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ module BST
1010
, toList
1111
) where
1212

13+
data BST a = Dummy deriving (Eq, Show)
14+
1315
bstLeft :: BST a -> Maybe (BST a)
1416
bstLeft = undefined
1517

0 commit comments

Comments
 (0)