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
141
Issues
141
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
a28e9654
Commit
a28e9654
authored
Apr 28, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DB/FACTO] G.D.S.Prelude (with issue)
parent
2e001c5d
Pipeline
#836
failed with stage
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
10 deletions
+61
-10
NodeNodeNgrams.hs
src/Gargantext/Database/Schema/NodeNodeNgrams.hs
+1
-2
NodeNodeNgrams2.hs
src/Gargantext/Database/Schema/NodeNodeNgrams2.hs
+1
-3
NodesNgramsRepo.hs
src/Gargantext/Database/Schema/NodesNgramsRepo.hs
+1
-3
Prelude.hs
src/Gargantext/Database/Schema/Prelude.hs
+51
-0
User.hs
src/Gargantext/Database/Schema/User.hs
+7
-2
No files found.
src/Gargantext/Database/Schema/NodeNodeNgrams.hs
View file @
a28e9654
...
...
@@ -24,12 +24,11 @@ module Gargantext.Database.Schema.NodeNodeNgrams
where
import
Prelude
import
Control.Lens.TH
(
makeLenses
)
import
Gargantext.Database.Admin.Utils
(
Cmd
,
mkCmd
)
import
Gargantext.Database.Schema.Prelude
import
Gargantext.Database.Schema.Ngrams
(
NgramsTypeId
,
pgNgramsTypeId
,
NgramsId
)
import
Gargantext.Database.Admin.Types.Node
(
pgNodeId
)
import
Gargantext.Database.Admin.Types.Node
import
Opaleye
data
NodeNodeNgramsPoly
n1
n2
ngrams_id
ngt
w
=
NodeNodeNgrams
{
_nnng_node1_id
::
!
n1
...
...
src/Gargantext/Database/Schema/NodeNodeNgrams2.hs
View file @
a28e9654
...
...
@@ -23,13 +23,11 @@ Portability : POSIX
module
Gargantext.Database.Schema.NodeNodeNgrams2
where
import
Control.Lens.TH
(
makeLenses
)
import
Data.Profunctor.Product.TH
(
makeAdaptorAndInstance
)
import
Gargantext.Database.Schema.Prelude
import
Gargantext.Database.Schema.NodeNgrams
(
NodeNgramsId
)
import
Gargantext.Database.Admin.Types.Node
(
pgNodeId
)
import
Gargantext.Database.Admin.Types.Node
import
Gargantext.Database.Admin.Utils
(
Cmd
,
mkCmd
)
import
Opaleye
import
Prelude
data
NodeNodeNgrams2Poly
node_id
nodengrams_id
w
...
...
src/Gargantext/Database/Schema/NodesNgramsRepo.hs
View file @
a28e9654
...
...
@@ -28,10 +28,8 @@ Portability : POSIX
module
Gargantext.Database.Schema.NodesNgramsRepo
where
import
Control.Arrow
(
returnA
)
import
Control.Lens.TH
(
makeLenses
)
import
Data.Map.Strict.Patch
(
PatchMap
)
import
Data.Profunctor.Product.TH
(
makeAdaptorAndInstance
)
import
Gargantext.Database.Schema.Prelude
import
Gargantext.API.Ngrams
(
NgramsStatePatch
,
NgramsTablePatch
)
import
Gargantext.Database.Schema.Ngrams
(
NgramsType
)
import
Gargantext.Database.Admin.Types.Node
(
NodeId
)
...
...
src/Gargantext/Database/Schema/Prelude.hs
0 → 100644
View file @
a28e9654
{-|
Module : Gargantext.Database.Prelude
Description :
Copyright : (c) CNRS, 2017-Present
License : AGPL + CECILL v3
Maintainer : team@gargantext.org
Stability : experimental
Portability : POSIX
-}
{-# LANGUAGE NoImplicitPrelude #-}
module
Gargantext.Database.Schema.Prelude
(
module
Control
.
Arrow
,
module
Control
.
Lens
.
TH
,
module
Data
.
Aeson
.
TH
,
module
Data
.
Profunctor
.
Product
.
TH
,
module
Data
.
Swagger
,
module
Database
.
PostgreSQL
.
Simple
.
FromField
,
module
Database
.
PostgreSQL
.
Simple
.
FromRow
,
module
Database
.
PostgreSQL
.
Simple
.
SqlQQ
,
module
Database
.
PostgreSQL
.
Simple
.
ToField
,
module
Database
.
PostgreSQL
.
Simple
.
ToRow
,
module
Database
.
PostgreSQL
.
Simple
.
Types
,
module
GHC
.
Generics
,
module
Gargantext
.
Core
.
Utils
.
Prefix
,
module
Opaleye
,
module
Opaleye
.
Internal
.
QueryArr
,
module
Test
.
QuickCheck
.
Arbitrary
)
where
import
Control.Arrow
(
returnA
)
import
Control.Lens.TH
(
makeLenses
,
makeLensesWith
,
abbreviatedFields
)
import
Data.Aeson.TH
(
deriveJSON
)
import
Data.Profunctor.Product.TH
(
makeAdaptorAndInstance
)
import
Data.Swagger
hiding
(
required
,
in_
)
import
GHC.Generics
(
Generic
)
import
Gargantext.Core.Utils.Prefix
(
unPrefix
,
unPrefixSwagger
)
import
Opaleye
hiding
(
FromField
)
import
Opaleye.Internal.QueryArr
(
Query
)
import
Test.QuickCheck.Arbitrary
import
Database.PostgreSQL.Simple.FromField
(
FromField
,
fromField
)
import
Database.PostgreSQL.Simple.FromRow
(
FromRow
,
fromRow
,
field
)
import
Database.PostgreSQL.Simple.SqlQQ
(
sql
)
import
Database.PostgreSQL.Simple.ToField
(
toField
,
ToField
)
import
Database.PostgreSQL.Simple.ToRow
(
toRow
)
import
Database.PostgreSQL.Simple.Types
(
Values
(
..
),
QualifiedIdentifier
(
..
))
src/Gargantext/Database/Schema/User.hs
View file @
a28e9654
...
...
@@ -25,13 +25,18 @@ Functions to deal with users, database side.
module
Gargantext.Database.Schema.User
where
import
Control.Lens.TH
(
makeLensesWith
,
abbreviatedFields
)
import
Data.Maybe
(
Maybe
)
import
Data.Profunctor.Product.TH
(
makeAdaptorAndInstance
)
import
Data.Text
(
Text
)
import
Data.Time
(
UTCTime
)
import
GHC.Show
(
Show
(
..
))
import
Gargantext.Prelude
-- FIXME PLZ : the import below leads to an error, why ?
-- import Gargantext.Database.Schema.Prelude hiding (makeLensesWith, abbreviatedFields, makeAdaptorAndInstance)
-- When FIXED : Imports to remove:
import
Control.Lens.TH
(
makeLensesWith
,
abbreviatedFields
)
import
Data.Profunctor.Product.TH
(
makeAdaptorAndInstance
)
import
Opaleye
------------------------------------------------------------------------
...
...
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