Fix a warning

This commit is contained in:
John Wiegley 2018-04-10 09:44:52 -07:00
parent cb44653e63
commit a2391deedf

View file

@ -299,7 +299,7 @@ nixBinders = (inherit <|> namedVar) `endBy` semi where
scope = parens nixExprLoc <?> "inherit scope"
keyName :: Parser (NKeyName NExprLoc)
keyName = (dynamicKey <|> staticKey) where
keyName = dynamicKey <|> staticKey where
staticKey = do
beg <- getPosition
StaticKey <$> identifier <*> pure (Just beg)