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
7c50b9de
Commit
7c50b9de
authored
May 19, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] removing template haskell
parent
556eec9e
Pipeline
#855
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Individu.hs
src/Gargantext/Core/Types/Individu.hs
+4
-5
No files found.
src/Gargantext/Core/Types/Individu.hs
View file @
7c50b9de
...
...
@@ -15,18 +15,16 @@ Individu defintions
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module
Gargantext.Core.Types.Individu
where
import
Data.Aeson
.TH
(
deriveJSON
)
import
Data.Aeson
import
Control.Monad.IO.Class
(
MonadIO
)
import
GHC.Generics
(
Generic
)
import
Data.Swagger
import
Data.Text
(
Text
,
pack
,
reverse
)
import
Gargantext.Database.Admin.Types.Node
(
NodeId
,
UserId
)
import
Gargantext.Core.Utils.Prefix
(
unPrefix
)
import
Gargantext.Prelude
hiding
(
reverse
)
import
qualified
Gargantext.Core.Auth
as
Auth
...
...
@@ -42,6 +40,9 @@ newtype GargPassword = GargPassword Text
instance
Show
GargPassword
where
show
(
GargPassword
_
)
=
"*GargPassword*"
instance
ToJSON
GargPassword
instance
FromJSON
GargPassword
instance
ToSchema
GargPassword
type
Email
=
Text
...
...
@@ -76,5 +77,3 @@ arbitraryUsers :: [(Username, Email, GargPassword)]
arbitraryUsers
=
map
(
\
u
->
(
u
,
u
<>
"@gargantext.org"
,
GargPassword
$
reverse
u
))
arbitraryUsername
$
(
deriveJSON
(
unPrefix
""
)
''
G
argPassword
)
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