Skip to content

Commit

Permalink
fixup! Add Workspace name validation (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheaven committed Oct 2, 2023
1 parent a63c6a0 commit 52e4289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Monocle/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ getIdentByAliasFromIdents alias idents' = case find isMatched idents' of
-- >>> mkIndexName ".."
-- Left "Is (.|..)"
-- >>> mkIndexName "hello-world_42"
-- Right (IndexName "hello-world_42")
-- Right (IndexName {getIndexName = "hello-world_42"})
mkIndexName :: Text -> Either Text IndexName
mkIndexName name = do
let check explanation p = if p then Right () else Left explanation
Expand Down

0 comments on commit 52e4289

Please sign in to comment.