export benchmark to json
This commit is contained in:
parent
5eebba1355
commit
35ba59c5d6
4 changed files with 39 additions and 17 deletions
|
|
@ -50,7 +50,7 @@ exists s (Group name st) = or (exists s <$> st) || s == name
|
|||
|
||||
group :: String -> [SpecificationTree] -> SpecificationTree
|
||||
group name st
|
||||
| or $ exists name <$> st = error "Name already exists"
|
||||
| or $ exists name <$> st = error $ "Name already exists: " <> name
|
||||
| otherwise = Group name st
|
||||
|
||||
getSpecification :: String -> SpecificationTree -> Maybe Specification
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue