Skip to content

Commit

Permalink
Parser: m note
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Latukha committed Jan 26, 2022
1 parent 6224533 commit d842a6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Nix/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,8 @@ operator (coerce -> op) =
opWithLoc :: (AnnUnit SrcSpan o -> a) -> o -> NOpName -> Parser a
opWithLoc f op name = f . (op <$) <$> annotateLocation1 (operator name)

-- 2022-01-26: NOTE: Make presedence free and type safe by moving it into type level:
-- https://youtu.be/qaPdg0mZavM?t=1757
newtype NOpPrecedence = NOpPrecedence Int
deriving (Eq, Ord, Generic, Bounded, Typeable, Data, Show, NFData)

Expand Down

0 comments on commit d842a6c

Please sign in to comment.