packages feed

ide-backend-common 0.9.1.2 → 0.9.1.3

raw patch · 9 files changed

+49/−33 lines, 9 filesdep +ghc-primdep ~aesondep ~basePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies added: ghc-prim

Dependency ranges changed: aeson, base

API changes (from Hackage documentation)

+ IdeSession.GHC.Requests: instance Selector S1_0_4RunCmd
+ IdeSession.GHC.Requests: runCmdPty :: RunCmd -> Bool
+ IdeSession.Strict.Container: instance (Eq k, Eq v) => Eq (Strict (Map k) v)
+ IdeSession.Strict.Container: instance Eq a => Eq (Strict Trie a)
+ IdeSession.Strict.Container: instance Eq v => Eq (Strict IntMap v)
+ IdeSession.Types.Public: instance Eq SpanInfo
- IdeSession.GHC.Requests: RunStmt :: String -> String -> RunBufferMode -> RunBufferMode -> RunCmd
+ IdeSession.GHC.Requests: RunStmt :: String -> String -> RunBufferMode -> RunBufferMode -> Bool -> RunCmd

Files

− ChangeLog.md
@@ -1,3 +0,0 @@-## 0.9.1.2--* Conditional compilation for `Binary Text` instance [#281](https://github.com/fpco/ide-backend/issues/281)
IdeSession/GHC/Requests.hs view
@@ -1,7 +1,8 @@+{-# LANGUAGE DeriveDataTypeable, DeriveGeneric, RecordWildCards #-}+ -- | GHC requests -- -- GHC requests use "IdeSession.Types.Public" types.-{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-} module IdeSession.GHC.Requests (     GhcInitRequest(..)   , GhcRequest(..)@@ -79,6 +80,7 @@       , runCmdFunction :: String       , runCmdStdout   :: RunBufferMode       , runCmdStderr   :: RunBufferMode+      , runCmdPty      :: Bool       }   | Resume   deriving (Typeable, Generic, Show)@@ -165,19 +167,22 @@  instance Binary RunCmd where   put (RunStmt {..}) = do-    putWord8 0+    putWord8 2     put runCmdModule     put runCmdFunction     put runCmdStdout     put runCmdStderr+    put runCmdPty   put Resume = do     putWord8 1    get = do     header <- getWord8     case header of-      0 -> RunStmt <$> get <*> get <*> get <*> get+      -- Still respond to requests that use the old binary format.+      0 -> RunStmt <$> get <*> get <*> get <*> get <*> return False       1 -> return Resume+      2 -> RunStmt <$> get <*> get <*> get <*> get <*> get       _ -> fail "RunCmd.get: invalid header"  instance Binary GhcRunRequest where
IdeSession/GHC/Responses.hs view
@@ -1,7 +1,8 @@+{-# LANGUAGE DeriveDataTypeable, DeriveGeneric, RecordWildCards #-}+ -- | Responses from the GHC server -- -- The server responds with "IdeSession.Types.Private" types-{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-} module IdeSession.GHC.Responses (     GhcInitResponse(..)   , GhcCompileResponse(..)
IdeSession/Strict/Container.hs view
@@ -31,7 +31,7 @@  instance StrictContainer IntMap where   newtype Strict IntMap v = StrictIntMap { toLazyIntMap :: IntMap v }-    deriving Show+    deriving (Eq, Show)    force m = IntMap.foldl' (flip seq) () m `seq` StrictIntMap m   project = toLazyIntMap@@ -49,7 +49,7 @@  instance StrictContainer [] where   newtype Strict [] a = StrictList { toLazyList :: [a] }-    deriving (Show, Eq)+    deriving (Eq, Show)    force m = List.foldl' (flip seq) () m `seq` StrictList m   project = toLazyList@@ -68,7 +68,7 @@  instance StrictContainer (Map k) where   newtype Strict (Map k) v = StrictMap { toLazyMap :: Map k v }-    deriving (Show)+    deriving (Eq, Show)    force m = Map.foldl' (flip seq) () m `seq` StrictMap m   project = toLazyMap@@ -121,7 +121,7 @@  instance StrictContainer Trie where   newtype Strict Trie a = StrictTrie { toLazyTrie :: Trie a }-    deriving (Show)+    deriving (Eq, Show)    force m = Foldable.foldl (flip seq) () m `seq` StrictTrie m   project = toLazyTrie
IdeSession/Types/Private.hs view
@@ -1,4 +1,5 @@-{-# LANGUAGE TemplateHaskell, GeneralizedNewtypeDeriving, DeriveDataTypeable, DeriveGeneric #-}+{-# LANGUAGE TemplateHaskell, GeneralizedNewtypeDeriving, DeriveDataTypeable, DeriveGeneric, RecordWildCards #-}+ -- | The private types module IdeSession.Types.Private (     -- * Types without a public counterpart
IdeSession/Types/Progress.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DeriveGeneric, RecordWildCards #-} module IdeSession.Types.Progress (     Progress(..)   ) where
IdeSession/Types/Public.hs view
@@ -1,4 +1,5 @@-{-# LANGUAGE TemplateHaskell, DeriveDataTypeable, DeriveGeneric #-}+{-# LANGUAGE TemplateHaskell, DeriveDataTypeable, DeriveGeneric, NamedFieldPuns, RecordWildCards #-}+ -- | The public types module IdeSession.Types.Public (     -- * Types@@ -185,13 +186,13 @@   }   deriving (Show, Eq, Ord, Generic) --- | Returned then the IDE asks "what's at this particular location?"+-- | Returned when the IDE asks "what's at this particular location?" data SpanInfo =     -- | Identifier     SpanId IdInfo     -- | Quasi-quote. The 'IdInfo' field gives the quasi-quoter   | SpanQQ IdInfo-  deriving (Generic)+  deriving (Eq, Generic)  -- | Buffer modes for running code --
IdeSession/Types/Translation.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE TypeFamilies, ScopedTypeVariables, TypeSynonymInstances, FlexibleInstances, FlexibleContexts #-}+{-# LANGUAGE TypeFamilies, ScopedTypeVariables, TypeSynonymInstances, FlexibleInstances, FlexibleContexts, RecordWildCards #-} -- | Translation from the private to the public types module IdeSession.Types.Translation (     XShared
ide-backend-common.cabal view
@@ -1,5 +1,5 @@ name:                 ide-backend-common-version:              0.9.1.2+version:              0.9.1.3 synopsis:             Shared library used be ide-backend and ide-backend-server description:          Should not be used by end users license:              MIT@@ -10,7 +10,7 @@ category:             Development build-type:           Simple cabal-version:        >=1.10-extra-source-files:   README.md ChangeLog.md+extra-source-files:   README.md  library   exposed-modules:    IdeSession.Util@@ -38,14 +38,14 @@                       IdeSession.Types.Translation                       IdeSession.Types.Progress -  build-depends:      base                 ==4.*,+  build-depends:      base                 >= 4.5     && < 5,                       filepath             >= 1.3     && < 1.5,                       directory            >= 1.1     && < 1.3,-                      containers           >= 0.4.1   && < 1,+                      containers           >= 0.4.2   && < 1,                       bytestring           >= 0.9.2   && < 1,                       mtl                  >= 2.1     && < 2.3,                       async                >= 2.0     && < 2.1,-                      aeson                >= 0.6.2   && < 0.9,+                      aeson                >= 0.6.2   && < 0.10,                       unix                 >= 2.5     && < 2.8,                       temporary            >= 1.1.2.4 && < 1.3,                       bytestring-trie      >= 0.2     && < 0.3,@@ -59,20 +59,31 @@                       transformers         >= 0.3     && < 0.5,                       attoparsec           >= 0.10    && < 0.14,                       template-haskell,-                      pretty-show+                      pretty-show          >= 1.3     && < 1.7 +  -- GHC.Generics lived in `ghc-prim` for GHC 7.2 & GHC 7.4+  if impl(ghc < 7.6)+      build-depends:  ghc-prim == 0.2.*+   default-language:   Haskell2010-  default-extensions: MonoLocalBinds-                      BangPatterns-                      RecordWildCards+  other-extensions:   CPP+                      DeriveDataTypeable+                      DeriveFoldable+                      DeriveFunctor+                      DeriveGeneric+                      DeriveTraversable+                      FlexibleContexts+                      FlexibleInstances+                      GADTs+                      GeneralizedNewtypeDeriving+                      MultiParamTypeClasses                       NamedFieldPuns                       RankNTypes-                      MultiParamTypeClasses-                      ExistentialQuantification-                      FlexibleContexts-                      DeriveDataTypeable-  other-extensions:   CPP+                      RecordWildCards+                      ScopedTypeVariables+                      StandaloneDeriving                       TemplateHaskell-                      ScopedTypeVariables,-                      GeneralizedNewtypeDeriving+                      TypeFamilies+                      TypeSynonymInstances+   ghc-options:        -Wall -fno-warn-unused-do-bind