You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Nix/Parser.hs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ module Nix.Parser
22
22
, getBinaryOperator
23
23
, getSpecialOperator
24
24
, nixTopLevelForm
25
-
, nixExpr
25
+
, nixExprAlgebra
26
26
, nixSet
27
27
, nixBinders
28
28
, nixSelector
@@ -739,9 +739,9 @@ nixIf :: Parser NExprLoc
739
739
nixIf =
740
740
annotateNamedLocation "if"$
741
741
liftA3 NIf
742
-
(reserved "if"*>nixExpr )
743
-
(getExprAfterReservedWord "then")
744
-
(getExprAfterReservedWord "else")
742
+
(reserved "if"*>nixExprAlgebra)
743
+
(getExprAfterReservedWord "then")
744
+
(getExprAfterReservedWord "else")
745
745
746
746
-- ** with
747
747
@@ -848,15 +848,15 @@ nixTerm = do
848
848
849
849
--| Nix expression algebra parser.
850
850
-- "Expression algebra" is to explain @megaparsec@ use of the term "Expression" (parser for language algebraic coperators without any statements (without @let@ etc.)), which is essentially an algebra inside the language.
0 commit comments