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
148
Issues
148
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
purescript-gargantext
Commits
bef1f612
Commit
bef1f612
authored
Jul 17, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUG] with Array.null case
parent
6ffee35a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Crypto.purs
src/Gargantext/Utils/Crypto.purs
+6
-2
No files found.
src/Gargantext/Utils/Crypto.purs
View file @
bef1f612
...
...
@@ -44,10 +44,14 @@ instance isHashableString :: IsHashable String
------------------------------------------------------------------------
instance isHashableArrayHashDone :: IsHashable (Array HashDone)
where
hash'' x = hash'' $ Set.fromFoldable x
hash'' x = if Array.null x
then hash'' $ (Set.fromFoldable Set.empty :: Set HashDone)
else hash'' $ Set.fromFoldable x
else instance isHashableArray :: (Crypto.Hashable a, IsHashable a) => IsHashable (Array a)
where
hash'' x = hash'' $ map hash x
hash'' x = if Array.null x
then hash'' $ (Set.fromFoldable Set.empty :: Set HashDone)
else hash'' $ map hash x
------------------------------------------------------------------------
instance isHashableSetHashDone :: IsHashable (Set HashDone) where
...
...
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