packages feed

ihaskell 0.10.2.0 → 0.10.2.1

raw patch · 3 files changed

+10/−3 lines, 3 filesdep ~aeson

Dependency ranges changed: aeson

Files

ihaskell.cabal view
@@ -7,7 +7,7 @@ -- PVP summary:      +--+------- breaking API changes --                   |  | +----- non-breaking API additions --                   |  | | +--- code changes with no API change-version:             0.10.2.0+version:             0.10.2.1  -- A short (one-line) description of the package. synopsis:            A Haskell backend kernel for the IPython project.
src/IHaskell/Eval/Hoogle.hs view
@@ -25,7 +25,7 @@ import           Network.HTTP.Client import           Network.HTTP.Client.TLS -import           StringUtils             (replace, split, strip)+import           StringUtils             (replace, split, splitFirst, strip)  -- | Types of formats to render output to. data OutputFormat = Plain      -- ^ Render to plain text.@@ -193,7 +193,7 @@                 packageSub package    | otherwise =-      let [name, args] = split "::" string+      let [name, args] = splitFirst "::" string           package = extractPackageName loc           modname = extractModuleName loc       in span "hoogle-name"
src/StringUtils.hs view
@@ -5,11 +5,13 @@     rstrip,     replace,     split,+    splitFirst,     ) where  import           IHaskellPrelude import qualified Data.Text as T import           Data.List.Split (splitOn)+import qualified Data.List.Split as Split  lstrip :: String -> String lstrip = dropWhile (`elem` (" \t\r\n" :: String))@@ -26,3 +28,8 @@  split :: String -> String -> [String] split = splitOn++splitFirst :: String -> String -> [String]+splitFirst delim str = let+  (head:_:tail) = Split.split (Split.onSublist delim) str+  in [head, concat tail]