2 Module : Gargantext.Prelude.Utils
3 Description : Useful Tools near Prelude of the project
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
10 TODO_1: qualitative tests (human)
11 TODO_2: quantitative tests (coded)
16 module Gargantext.Prelude.Utils
19 import Control.Monad.Random.Class (MonadRandom)
20 import qualified System.Random.Shuffle as SRS
22 ------------------------------------------------------------------------
24 shuffle :: MonadRandom m => [a] -> m [a]
25 shuffle ns = SRS.shuffleM ns
26 --------------------------------------------------------------------------
28 -- TODO gargDB instance for NodeType
30 data NodeToHash = NodeToHash { nodeType :: NodeType