ghc-lib-parser-ex 8.8.5.6 → 8.8.5.7
raw patch · 4 files changed
+19/−6 lines, 4 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Language.Haskell.GhclibParserEx.DynFlags: instance GHC.Classes.Ord GHC.LanguageExtensions.Type.Extension
Files
- ChangeLog.md +5/−1
- ghc-lib-parser-ex.cabal +1/−1
- src/Language/Haskell/GhclibParserEx/DynFlags.hs +7/−0
- src/Language/Haskell/GhclibParserEx/Fixity.hs +6/−4
ChangeLog.md view
@@ -1,6 +1,10 @@ # Changelog for ghc-lib-parser-ex -## Unreleased changes+## 8.8.5.7 released 2020-03-16+- From `Language.Haskell.GhclibParserEx.Fixity`:+ - Supply missing fixities (https://github.com/ndmitchell/hlint/issues/913)+- In `Language.Haskell.GhclibParserEx.DynFlags`:+ - Give `Extension` an `Ord` instance ## 8.8.5.6 released 2020-03-13 - From `Language.Haskell.GhclibParserEx.Fixity`:
ghc-lib-parser-ex.cabal view
@@ -1,6 +1,6 @@ cabal-version: >= 1.18 name: ghc-lib-parser-ex-version: 8.8.5.6+version: 8.8.5.7 description: Please see the README on GitHub at <https://github.com/shayne-fletcher/ghc-lib-parser-ex#readme> homepage: https://github.com/shayne-fletcher/ghc-lib-parser-ex#readme bug-reports: https://github.com/shayne-fletcher/ghc-lib-parser-ex/issues
src/Language/Haskell/GhclibParserEx/DynFlags.hs view
@@ -2,6 +2,7 @@ -- SPDX-License-Identifier: BSD-3-Clause. {-# LANGUAGE CPP #-}+{-# OPTIONS_GHC -Wno-orphans #-} -- Yes, I know. #include "ghclib_api.h" module Language.Haskell.GhclibParserEx.DynFlags(@@ -29,7 +30,13 @@ import Data.List import Data.List.Extra import Data.Maybe+import Data.Function import qualified Data.Map as Map++-- Oprhan instance until+-- https://gitlab.haskell.org/ghc/ghc/merge_requests/2707 lands.+instance Ord Extension where+ compare = compare `on` fromEnum -- | Parse a GHC extension. readExtension :: String -> Maybe Extension
src/Language/Haskell/GhclibParserEx/Fixity.hs view
@@ -150,16 +150,18 @@ -- this list is that of Control.Arrows. baseFixities :: [(String, Fixity)] baseFixities = preludeFixities ++ concat- [ infixl_ 9 ["!","//","!:"]+ [ infixr_ 9 ["Compose"]+ , infixl_ 9 ["!","//","!:"] , infixl_ 8 ["shift","rotate","shiftL","shiftR","rotateL","rotateR"] , infixl_ 7 [".&."] , infixl_ 6 ["xor"] , infix_ 6 [":+"]+ , infixr_ 6 ["<>"] , infixl_ 5 [".|."]- , infixr_ 5 ["+:+","<++","<+>"] -- Fixity conflict for +++ between ReadP and Arrow.+ , infixr_ 5 ["+:+","<++","<+>","<|"] -- Fixity conflict for +++ between ReadP and Arrow. , infix_ 5 ["\\\\"]- , infixl_ 4 ["<$>","<$","<*>","<*","*>","<**>"]- , infix_ 4 ["elemP","notElemP"]+ , infixl_ 4 ["<$>","<$","$>","<*>","<*","*>","<**>","<$!>"]+ , infix_ 4 ["elemP","notElemP",":~:", ":~~:"] , infixl_ 3 ["<|>"] , infixr_ 3 ["&&&","***"] , infixr_ 2 ["+++","|||"]