Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 26178e2

Browse files
committed
Fix 'varable' naming mistake
1 parent 60ec0e1 commit 26178e2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/SqlSquared/Parser.purs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ primaryExpr = asErrorMessage "primary expression" $ PC.choice
306306
xs → embed $ Sig.SetLiteral xs
307307
, unaryOperator
308308
, functionExpr
309-
, varable
309+
, variable
310310
, literal
311311
, wildcard
312312
, arrayLiteral
@@ -397,7 +397,7 @@ functionDecl parseExpr = asErrorMessage "function declaration" do
397397
_ ← PC.try $ keyword "create" *> keyword "function"
398398
name ← ident
399399
operator "("
400-
args ← PC.sepBy varableString $ operator ","
400+
args ← PC.sepBy variableString $ operator ","
401401
operator ")"
402402
_ ← keyword "begin"
403403
body ← parseExpr
@@ -414,11 +414,11 @@ import_ = asErrorMessage "import declaration" do
414414
path ← Pt.parseAnyDirPath P.fail s
415415
pure $ Sig.Import path
416416

417-
varable m t. SqlParser' m t
418-
varable = C.var <$> varableString
417+
variable m t. SqlParser' m t
418+
variable = C.var <$> variableString
419419

420-
varableString m. Monad m P.ParserT TokenStream m Ident
421-
varableString = asErrorMessage "varable" $ PC.try do
420+
variableString m. Monad m P.ParserT TokenStream m Ident
421+
variableString = asErrorMessage "variable" $ PC.try do
422422
operator ":"
423423
PP.Position pos1 ← P.position
424424
s ← ident <|> anyKeyword
@@ -579,7 +579,7 @@ tableRelation = do
579579

580580
varRelation m t. SqlParser m t (Sig.Relation t)
581581
varRelation = do
582-
var ← varableString
582+
var ← variableString
583583
a ← PC.optionMaybe do
584584
_ ← keyword "as"
585585
ident

0 commit comments

Comments
 (0)