Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-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
Grégoire Locqueville
purescript-gargantext
Commits
21038fac
Commit
21038fac
authored
Oct 10, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[COSMETICS]
parent
93b6d5dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Sessions.purs
src/Gargantext/Sessions.purs
+3
-3
No files found.
src/Gargantext/Sessions.purs
View file @
21038fac
...
@@ -91,12 +91,12 @@ instance eqSessions :: Eq Sessions where
...
@@ -91,12 +91,12 @@ instance eqSessions :: Eq Sessions where
instance decodeJsonSessions :: DecodeJson Sessions where
instance decodeJsonSessions :: DecodeJson Sessions where
decodeJson json = do
decodeJson json = do
ss <- decodeSessions
'
json
ss <- decodeSessions json
pure (Sessions (Seq.fromFoldable ss))
pure (Sessions (Seq.fromFoldable ss))
where
where
decodeSessions
'
:: Json -> Either String (Array Session)
decodeSessions :: Json -> Either String (Array Session)
decodeSessions
'
json = decodeJson json >>= traverse decodeJson
decodeSessions json = decodeJson json >>= traverse decodeJson
instance encodeJsonSessions :: EncodeJson Sessions where
instance encodeJsonSessions :: EncodeJson Sessions where
encodeJson (Sessions ss) = "sessions" := (encodeSessions ss)
encodeJson (Sessions ss) = "sessions" := (encodeSessions ss)
...
...
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