Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
160
Issues
160
List
Board
Labels
Milestones
Merge Requests
8
Merge Requests
8
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
haskell-gargantext
Commits
33cee927
Commit
33cee927
authored
Mar 22, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WIP] Error Msg, another test, same bug.
parent
2590d283
Pipeline
#301
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Utils.hs
src/Gargantext/Database/Utils.hs
+2
-3
No files found.
src/Gargantext/Database/Utils.hs
View file @
33cee927
...
...
@@ -20,10 +20,9 @@ commentary with @some markup@.
module
Gargantext.Database.Utils
where
import
Debug.Trace
(
trace
)
import
Prelude
(
String
)
import
Control.Monad
((
>>
))
import
Data.Text
(
Text
)
--
import Data.Text (Text)
import
Control.Monad.Error.Class
(
MonadError
(
..
))
import
Control.Lens
(
Getter
,
view
)
import
Control.Monad.Reader
...
...
@@ -91,7 +90,7 @@ runPGSQuery' q a = mkCmd $ \conn -> PGS.query conn q a
runPGSQuery
::
(
MonadError
err
m
,
MonadReader
env
m
,
PGS
.
FromRow
r
,
PGS
.
ToRow
q
,
MonadIO
m
,
HasConnection
env
)
=>
PGS
.
Query
->
q
->
m
[
r
]
runPGSQuery
q
a
=
catchError
(
mkCmd
$
\
conn
->
PGS
.
query
conn
q
a
)
runPGSQuery
q
a
=
mkCmd
$
\
conn
->
catchError
(
PGS
.
query
conn
q
a
)
(
\
e
->
putStrLn
(
"Text xxxxxxxxxxxxxxxxxxx"
::
String
)
--(\e -> putStrLn ((cs $ formatPGSQuery q a):: Text)
>>
throwError
e
...
...
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