packages feed

haskell-lsp 0.12.1.0 → 0.13.0.0

raw patch · 5 files changed

+20/−6 lines, 5 filesdep ~aesondep ~haskell-lsp-typesPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: aeson, haskell-lsp-types

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,5 +1,10 @@ # Revision history for haskell-lsp +## 0.13.0.0 -- 2019-05-18++* Fix relative posix URIs (@DavidM-D)+* Make sure that markedUpContent always starts on a newline (@alanz)+ ## 0.12.1.0 -- 2019-05-08  * Bring over functions from @mpickering's hie-bios.
README.md view
@@ -1,4 +1,4 @@-[![CircleCI](https://img.shields.io/circleci/project/github/alanz/haskell-lsp.svg)](https://circleci.com/gh/alanz/haskell-lsp)+[![CircleCI](https://circleci.com/gh/alanz/haskell-lsp/tree/master.svg?style=svg)](https://circleci.com/gh/alanz/haskell-lsp/tree/master) [![Hackage](https://img.shields.io/hackage/v/haskell-lsp.svg)](https://hackage.haskell.org/package/haskell-lsp)  # haskell-lsp
haskell-lsp.cabal view
@@ -1,5 +1,5 @@ name:                haskell-lsp-version:             0.12.1.0+version:             0.13.0.0 synopsis:            Haskell library for the Microsoft Language Server Protocol  description:         An implementation of the types, and basic message server to@@ -45,7 +45,7 @@                      , filepath                      , hslogger                      , hashable-                     , haskell-lsp-types == 0.12.*+                     , haskell-lsp-types == 0.13.*                      , lens >= 4.15.2                      , mtl                      , network-uri
test/TypesSpec.hs view
@@ -23,9 +23,9 @@         `shouldBe` J.unmarkedUpContent "string1\nstring2\n"     it "appends a marked up and a plain string" $ do       J.markedUpContent "haskell" "foo :: Int" <> J.unmarkedUpContent "string2\n"-        `shouldBe` J.MarkupContent J.MkMarkdown "```haskell\nfoo :: Int\n```\nstring2\n"+        `shouldBe` J.MarkupContent J.MkMarkdown "\n```haskell\nfoo :: Int\n```\nstring2\n"     it "appends a plain string and a marked up string" $ do        J.unmarkedUpContent "string2\n" <> J.markedUpContent "haskell" "foo :: Int"-        `shouldBe` J.MarkupContent J.MkMarkdown "string2\n```haskell\nfoo :: Int\n```\n"+        `shouldBe` J.MarkupContent J.MkMarkdown "string2\n\n```haskell\nfoo :: Int\n```\n"  -- ---------------------------------------------------------------------
test/URIFilePathSpec.hs view
@@ -23,6 +23,9 @@ testPosixFilePath :: FilePath testPosixFilePath = "/home/myself/example.hs" +relativePosixFilePath :: FilePath+relativePosixFilePath = "myself/example.hs"+ testWindowsUri :: Uri testWindowsUri = Uri $ pack "file:///c%3A/Users/myself/example.hs" @@ -71,5 +74,11 @@       ,"/Functional.hs"       ,""       ,"")-    Just "/Functional.hs" `shouldBe` platformAwareUriToFilePath "posix" theFilePath+    Just "./Functional.hs" `shouldBe` platformAwareUriToFilePath "posix" theFilePath ++  it "converts a relative POSIX file path to a URI and back" $ do+    let uri = platformAwareFilePathToUri "posix" relativePosixFilePath+    uri `shouldBe` Uri "file://myself/example.hs"+    let back = platformAwareUriToFilePath "posix" uri+    back `shouldBe` Just relativePosixFilePath