Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
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
Przemyslaw Kaminski
haskell-gargantext
Commits
8cc09392
Commit
8cc09392
authored
Jun 03, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REPL sugar] runCmdReplEasy
parent
18ef3d66
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
4 deletions
+7
-4
Main.hs
bin/gargantext-import/Main.hs
+0
-2
Settings.hs
src/Gargantext/API/Admin/Settings.hs
+1
-0
Prelude.hs
src/Gargantext/API/Prelude.hs
+3
-1
Database.hs
src/Gargantext/Database.hs
+3
-0
User.hs
src/Gargantext/Database/Query/Table/User.hs
+0
-1
No files found.
bin/gargantext-import/Main.hs
View file @
8cc09392
...
...
@@ -59,7 +59,6 @@ main = do
annuaire
::
forall
m
.
FlowCmdM
DevEnv
GargError
m
=>
m
CorpusId
annuaire
=
flowAnnuaire
(
UserName
$
cs
user
)
(
Left
"Annuaire"
)
(
Multi
EN
)
corpusPath
{-
let debatCorpus :: forall m. FlowCmdM DevEnv GargError m => m CorpusId
debatCorpus = do
...
...
@@ -84,7 +83,6 @@ main = do
then
runCmdDev
env
corpusCsvHal
else
pure
0
--(cs "false")
_
<-
if
fun
==
"annuaire"
then
runCmdDev
env
annuaire
else
pure
0
...
...
src/Gargantext/API/Admin/Settings.hs
View file @
8cc09392
...
...
@@ -318,6 +318,7 @@ withDevEnv iniPath k = do
}
-- | Run Cmd Sugar for the Repl (GHCI)
runCmdRepl
::
Show
err
=>
Cmd'
DevEnv
err
a
->
IO
a
runCmdRepl
f
=
withDevEnv
"gargantext.ini"
$
\
env
->
runCmdDev
env
f
...
...
src/Gargantext/API/Prelude.hs
View file @
8cc09392
...
...
@@ -106,7 +106,9 @@ type EnvC env =
,
HasJobEnv
env
ScraperStatus
ScraperStatus
)
-------------------------------------------------------------------
runCmdReplEasy
::
Cmd'
DevEnv
GargError
a
->
IO
a
runCmdReplEasy
f
=
withDevEnv
"gargantext.ini"
$
\
env
->
runCmdDev
env
f
-------------------------------------------------------------------
-- | This Type is needed to prepare the function before the GargServer
...
...
src/Gargantext/Database.hs
View file @
8cc09392
...
...
@@ -23,3 +23,6 @@ module Gargantext.Database ( module Gargantext.Database.Prelude
import
Gargantext.Database.Prelude
(
connectGargandb
)
-- import Gargantext.Database.Bashql
src/Gargantext/Database/Query/Table/User.hs
View file @
8cc09392
...
...
@@ -66,7 +66,6 @@ insertUsersDemo = do
insertUsers
$
map
(
\
(
u
,
m
,
h
)
->
gargUserWith
u
m
h
)
users
-----------------------------------------------------------------------
gargUserWith
::
Username
->
Email
->
Auth
.
PasswordHash
Auth
.
Argon2
->
UserWrite
gargUserWith
u
m
(
Auth
.
PasswordHash
p
)
=
UserDB
(
Nothing
)
(
pgStrictText
p
)
(
Nothing
)
(
pgBool
True
)
(
pgStrictText
u
)
...
...
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