ide-backend-common 0.9.1.1 → 0.9.1.2
raw patch · 3 files changed
+8/−2 lines, 3 filesdep ~textPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: text
API changes (from Hackage documentation)
- IdeSession.Util: instance Binary Text
Files
- ChangeLog.md +3/−0
- IdeSession/Util.hs +3/−0
- ide-backend-common.cabal +2/−2
+ ChangeLog.md view
@@ -0,0 +1,3 @@+## 0.9.1.2++* Conditional compilation for `Binary Text` instance [#281](https://github.com/fpco/ide-backend/issues/281)
IdeSession/Util.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE TemplateHaskell, ScopedTypeVariables, DeriveFunctor, DeriveGeneric, StandaloneDeriving, GeneralizedNewtypeDeriving #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module IdeSession.Util (@@ -312,6 +313,7 @@ Orphans -------------------------------------------------------------------------------} +#if !MIN_VERSION_text(1,2,1) instance Binary Text where get = do units <- Bin.get Bin.readNWith (units * 2) $ \ptr ->@@ -321,5 +323,6 @@ Bin.putBuilder $ Bin.writeN (Text.lengthWord16 t * 2) (\p -> Text.unsafeCopyToPtr t (castPtr p))+#endif deriving instance Binary CPid
ide-backend-common.cabal view
@@ -1,5 +1,5 @@ name: ide-backend-common-version: 0.9.1.1+version: 0.9.1.2 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+extra-source-files: README.md ChangeLog.md library exposed-modules: IdeSession.Util