Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
00478f3b
Commit
00478f3b
authored
Jan 28, 2017
by
Erik de Castro Lopo
Committed by
Andrew Gibiansky
Mar 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of deprecation warnings
parent
38ac12b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
ihaskell.cabal
ihaskell.cabal
+1
-0
Hoogle.hs
src/IHaskell/Eval/Hoogle.hs
+3
-3
Parser.hs
src/tests/IHaskell/Test/Parser.hs
+1
-1
No files found.
ihaskell.cabal
View file @
00478f3b
...
...
@@ -175,6 +175,7 @@ Test-Suite hspec
ihaskell,
here,
hspec,
hspec-contrib,
HUnit,
ghc,
ghc-paths,
...
...
src/IHaskell/Eval/Hoogle.hs
View file @
00478f3b
...
...
@@ -54,10 +54,10 @@ instance FromJSON HoogleResponse where
-- an error message or the successful JSON result.
query
::
String
->
IO
(
Either
String
String
)
query
str
=
do
request
<-
parseUrl
$
queryUrl
$
urlEncode
str
request
<-
parseUrlThrow
$
queryUrl
$
urlEncode
str
mgr
<-
newManager
tlsManagerSettings
catch
(
Right
.
CBS
.
unpack
.
LBS
.
toStrict
.
responseBody
<$>
withManager
tlsManagerSettings
(
httpLbs
request
))
(
Right
.
CBS
.
unpack
.
LBS
.
toStrict
.
responseBody
<$>
httpLbs
request
mgr
)
(
\
e
->
return
$
Left
$
show
(
e
::
SomeException
))
where
...
...
src/tests/IHaskell/Test/Parser.hs
View file @
00478f3b
...
...
@@ -7,7 +7,7 @@ import Prelude
import
Data.String.Here
(
hereLit
)
import
Test.Hspec
import
Test.Hspec.HUnit
import
Test.Hspec.
Contrib.
HUnit
import
Test.HUnit
(
assertBool
,
assertFailure
)
import
IHaskell.Test.Util
(
ghc
,
strip
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment